Accepts a OtelCollectorConfig or plain options.
ReadonlyconfigThe configuration in use.
ReadonlyendpointEndpoint records are sent to (logsUrl when set, else url + /v1/logs for HTTP or grpcUrl for gRPC).
Exports records in one OTLP request. Resolves with accepted/rejected counts; never
rejects (failures are reported in error).
Waits for in-flight exports and releases connections. Idempotent.
LogExporter that sends records to the collector over OTLP:
POST {logsUrl}(application/x-protobuf) or gRPCLogsService/Export. Retries (HTTP 429/502/503/504) are done by the official OTLP export delegate withinexportTimeoutMs; errors in the result keep the naturalretryableflag of their code. A partial success reportsrejectedand aValidationError.