the client's ingest transport.
client configuration (ingest URL and source token).
encoding and request limits.
Sends the records. Returns {accepted, rejected, error?}; a failing request stops the export
(later requests count as rejected). Never throws for service errors.
Posts raw events (any JSON objects; dt may be a Date, an RFC 3339 string or UNIX
seconds/ms/ns) as one request. Throws the mapped SDK error: 403 → AuthenticationError,
402 → RateLimitError (not retryable), 406/413 → ValidationError.
Nothing to release; the client owns the transport.
Maps records to events and splits them into request bodies (no I/O).
LogExporter for Better Stack's HTTP ingest API: maps records to events (toBetterStackEvent), splits batches so no request exceeds 10 MiB, encodes them as JSON, NDJSON or MessagePack, gzips when asked and posts with
Authorization: Bearer <source token>. Exports are retried like idempotent calls (429, 5xx, network errors); Better Stack does not deduplicate, so an ambiguous failure may produce duplicates.