Skip to content

HttpTraceSink

Category: Observability

Source: http_trace_sink.dart

Classes

HttpTraceSink

Writes only http.*-kind spans to logs/http-YYYY-MM-DD.jsonl.

Runs alongside [FileSink] which captures everything else. The split keeps the generic span log readable and lets maintainers tail HTTP traffic without noise from agent-level spans.

Constructor

dart
HttpTraceSink({required String logsDir})

Methods

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

Released under the MIT License.