Skip to content

OtlpHttpTraceSink ​

Category: Observability

Source: otlp_http_trace_sink.dart

Classes ​

OtlpHttpTraceSink ​

Exports completed Glue spans using OTLP/HTTP JSON.

Constructor ​

dart
OtlpHttpTraceSink({
    required this._config,
    http.Client? client,
    DateTime Function()? now,
    this._maxBatchSize = 64,
  })

Methods ​

void onSpan(ObservabilitySpan span) ​
Future<void> flush() ​
Future<void> close() ​

Functions ​

Uri normalizeOtlpTracesEndpoint(String raw) ​

String redactOtelHeadersForDisplay(Map<String, String> headers) ​

Released under the MIT License.