Package-level declarations
Types
Bridges OpenTelemetrySpans into an AnalyticsClient as a generic otel_span_recorded event.
Discards every recorded span.
Sink for OpenTelemetrySpans. Bridge this to a real tracer, or to AnalyticsClient.
OpenTelemetry span status codes, spelled as the spec's enum names.
Properties
Attribute key trace sets to the failing exception's class name, per OTel semantic conventions.
Functions
Times block and records it as a span: SpanStatus.OK on success, SpanStatus.ERROR (with ERROR_TYPE_ATTRIBUTE) when it throws. Cancellation is recorded as SpanStatus.UNSET, since a cancelled operation did not fail. The exception is always rethrown. Sink failures are ignored so recording cannot change the result or replace the original exception. The inline block also supports suspending calls from a coroutine.