obsi library

Lightweight tracing, logging, and metrics foundations for pure Dart.

Classes

AlwaysOffSampler
Represents always off sampler.
AlwaysOnSampler
Represents always on sampler.
Baggage
Immutable application-defined context propagated with an operation.
BaggageEntry
Represents baggage entry.
BaggagePropagator
Represents baggage propagator.
BatchLogProcessor
Represents batch log processor.
BatchSpanProcessor
Represents batch span processor.
CompositeTracePropagator
Runs multiple trace propagators in order.
ConsoleErrorExporter
Represents console error exporter.
ConsoleLogExporter
Represents console log exporter.
ConsoleMetricExporter
Represents console metric exporter.
ConsoleSpanExporter
Represents console span exporter.
Counter<T extends num>
Represents counter.
ErrorAttachment
Represents error attachment.
ErrorBeforeSendProcessor
Runs a final user-defined transformation before export.
ErrorBreadcrumb
Represents error breadcrumb.
ErrorDeduplicationProcessor
Represents error deduplication processor.
ErrorExporter
Represents error exporter.
ErrorId
Represents error id.
ErrorIsolateListener
Owns a receive port registered for uncaught errors in one Dart isolate.
ErrorManager
Builds, processes and exports bounded error reports.
ErrorProcessor
Represents error processor.
ErrorRateLimitProcessor
Represents error rate limit processor.
ErrorReport
Represents error report.
Errors
Global facade for capturing errors and managing zone-local error scopes.
ErrorSamplingProcessor
Represents error sampling processor.
ErrorSanitizingProcessor
Represents error sanitizing processor.
ErrorScope
Represents error scope.
ErrorUser
Represents error user.
Gauge<T extends num>
Represents gauge.
Histogram<T extends num>
Represents histogram.
IdGenerator
Represents id generator.
InstrumentationScope
Represents instrumentation scope.
LogExporter
Represents log exporter.
Logger
Represents logger.
LoggerProvider
Represents logger provider.
LogProcessor
Represents log processor.
LogRecord
Represents log record.
Logs
Represents logs.
ManualMetricReader
Represents manual metric reader.
Meter
Represents meter.
MeterProvider
Represents meter provider.
MetricData
Represents metric data.
MetricExporter
Represents metric exporter.
MetricPoint
Represents metric point.
MetricProducer
Represents metric producer.
MetricReader
Represents metric reader.
Metrics
Represents metrics.
MetricView
Per-instrument aggregation limits configured on the meter provider.
MultiErrorExporter
Represents multi error exporter.
MultiLogProcessor
Represents multi log processor.
MultiSpanProcessor
Represents multi span processor.
ObservableCounter<T extends num>
Represents observable counter.
ObservableGauge<T extends num>
Represents observable gauge.
ObservableUpDownCounter<T extends num>
Represents observable up down counter.
Observation<T extends num>
Represents observation.
Obsi
Global facade for a process-wide Obsi installation.
ObsiProvider
Groups the signal providers that make up one Obsi installation.
ParentBasedSampler
Honors a valid parent's sampled flag and delegates root spans to root.
PeriodicMetricReader
Represents periodic metric reader.
PrettyConsoleOptions
Shared presentation settings for human-friendly console exporters.
PrettyTraceOptions
Presentation and buffering controls for console traces.
RandomIdGenerator
Represents random id generator.
Resource
Represents resource.
Sampler
Represents sampler.
SamplingParameters
Immutable input supplied before a span is created.
SamplingResult
Sampling decision plus optional data to attach to the created span.
SemanticAttributes
Represents semantic attributes.
SemanticEvents
Represents semantic events.
SemanticHttp
Stable OpenTelemetry HTTP semantic-convention helpers.
SemanticMetrics
Represents semantic metrics.
SensitiveAttributeRedactor
Replaces values whose attribute keys contain a sensitive pattern.
SimpleLogProcessor
Represents simple log processor.
SimpleSpanProcessor
Represents simple span processor.
Span
Represents span.
SpanContext
Immutable identity used to relate and propagate spans.
SpanData
Immutable representation delivered to processors and exporters.
SpanEvent
Represents span event.
SpanExporter
Represents span exporter.
SpanLimits
Represents span limits.
Represents span link.
SpanProcessor
Represents span processor.
Trace
Global entry point. Tracing is disabled until configure is called.
TraceIdRatioBasedSampler
Deterministic head sampler based on the trace identifier.
TracePropagator
Represents trace propagator.
Tracer
Represents tracer.
TracerProvider
Represents tracer provider.
UpDownCounter<T extends num>
Represents up down counter.
W3CBaggagePropagator
Represents w3 cbaggage propagator.
W3CTraceContextPropagator
Injects and extracts the W3C Trace Context HTTP headers.

Enums

AggregationTemporality
Defines aggregation temporality values.
ErrorMechanism
Defines error mechanism values.
ErrorSeverity
Defines error severity values.
InstrumentKind
Defines instrument kind values.
LogSeverity
Defines log severity values.
SamplingDecision
Decision returned by a Sampler.
SpanKind
Defines span kind values.
SpanStatus
Defines span status values.
TraceConsoleDetail
Amount of diagnostic context printed below a span.

Functions

isValidAttributeValue(Object? value) → bool
Values accepted by all Obsi telemetry signals.
validatedAttributes(Map<String, Object?> attributes, {int? limit}) → Map<String, Object?>
Performs validated attributes.

Typedefs

AttributeRedactor = Map<String, Object?> Function(Map<String, Object?> attributes)
Defines the attribute redactor type.
Attributes = Map<String, Object?>
Defines the attributes type.
ConsoleWriter = void Function(String message)
Receives one fully formatted console record.
TelemetryErrorHandler = void Function(Object error, StackTrace stackTrace)
Receives failures produced internally by telemetry components.