opentelemetry_flutter library

Re-exports the full OpenTelemetry API surface. The previous curated show list was dropped because the OTel semconv registry keeps growing — every new attribute / metric / event enum the API adds would otherwise need a parallel listing here. Re-exporting the whole package keeps the SDK shipping the entire spec surface for free.

Classes

AlignedHistogramBucketExemplarReservoir
A reservoir that is aligned to histogram buckets.
AlwaysOffExemplarFilter
An ExemplarFilter which samples no measurements.
AlwaysOffSampler
A sampler that never samples any traces.
AlwaysOnExemplarFilter
An ExemplarFilter which samples all measurements.
AlwaysOnSampler
A sampler that always samples every trace.
APIBatchCallbackRegistration
Registration handle returned by APIMeter.registerBatchCallback.
APICallbackRegistration<T extends num>
A registration for an observable callback.
APICounter<T extends num>
APICounter is a synchronous Instrument which supports non-negative increments.
APIGauge<T extends num>
APIGauge is a synchronous Instrument which reports instantaneous measurements.
APIHistogram<T extends num>
APIHistogram is a synchronous Instrument which records a distribution of values.
APIInstrument
The base interface for all metric instruments.
APILogger
Logger is responsible for creating LogRecords. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the Logger from the SDK instead.
APILoggerProvider
APILoggerProvider is the entry point of the OpenTelemetry logger API. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the LoggerProvider from the SDK instead. It provides access to APILoggers which are used to log operations. You cannot create a LoggerProvider directly; you must use OTelAPI or more likely OTel, for example to get the default logger:
APIMeter
Meter is responsible for creating APIInstruments and recording metrics. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the Meter from the SDK instead. This is the no-op meter. It accepts every argument unvalidated, including an empty instrument name, and never logs or reports: metrics/noop.md says the Meter MUST NOT return a non-empty error or log any message. Name validation belongs to the SDK meter.
APIMeterProvider
APIMeterProvider is the entry point of the OpenTelemetry metrics API. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the MeterProvider from the SDK instead. It provides access to APIMeters which are used to record metrics. You cannot create a MeterProvider directly; you must use OTelAPI or more likely, OTel, for example to get the default meter provider:
APIObservableCounter<T extends num>
APIObservableCounter is an asynchronous Instrument which reports monotonically increasing value(s) when the instrument is being observed.
APIObservableGauge<T extends num>
APIObservableGauge is an asynchronous Instrument which reports non-additive value(s) when the instrument is being observed.
APIObservableInstrument
An asynchronous instrument that reports through a callback.
APIObservableResult<T extends num>
Interface for recording observations from observable instruments.
APIObservableUpDownCounter<T extends num>
APIObservableUpDownCounter is an asynchronous Instrument which reports values that increase or decrease when the instrument is being observed.
APISpan
Span represents a single operation within a trace. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the TracerProvider from the SDK instead. Spans can be nested to form a trace tree. Each trace contains a root span, which typically describes the end-to-end latency, and zero or more sub-spans for its sub-operations. Any span that is created MUST also be ended. This is the responsibility of the user. API implementations MAY leak memory or other resources (including, for example, CPU time for periodic work that iterates all spans) if the user forgot to end the span.
APITracer
Tracer is responsible for creating APISpans and propagating context in-process. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the TracerProvider from the SDK instead.
APITracerProvider
APITracerProvider is the entry point of the OpenTelemetry tracing API. The API prefix indicates that it's part of the API and not the SDK and generally should not be used since an API without an SDK is a noop. Use the TracerProvider from the SDK instead. It provides access to APITracers which are used to trace operations. You cannot create a TracerProvider directly; you must use OTelAPI or more likely OTel, for example to get the default tracer:
APIUpDownCounter<T extends num>
APIUpDownCounter is a synchronous Instrument which supports increments and decrements.
Attribute<T extends Object>
Represents a value for an attribute, associated with an attribute key.
Attributes
A collection of attributes that are immutable and type-safe. Create with the OTelFactory methods.
AttributeSamplingCondition
A sampling condition that forces sampling when a span has a specific attribute value.
Baggage
Immutable Baggage that stores entries with unique string keys.
BaggageEntry
A single entry within Baggage. Typically just a value plus optional metadata.
BaggageEntryFactory
Factory for creating BaggageEntry instances. This is used internally by the OpenTelemetry API implementation.
BaggageSpanProcessor
Automatically copies baggage entries to span attributes on span start.
BatchLogRecordProcessor
A LogRecordProcessor that batches log records before export.
BatchLogRecordProcessorConfig
Configuration for the BatchLogRecordProcessor.
BatchObservableResult
Passed to a BatchObservableCallback to record observations.
BatchSpanProcessor
A SpanProcessor that batches spans before export.
BatchSpanProcessorConfig
Configuration for the BatchSpanProcessor.
CompositeExporter
A composite exporter that delegates export operations to multiple exporters.
CompositeMetricExporter
A composite metric exporter that delegates to multiple exporters.
CompositePropagator<C, V>
A propagator that combines multiple other propagators.
CompositeResourceDetector
Composite detector that combines multiple resource detectors.
CompositeSampler
A sampler that combines multiple samplers using a specified operation.
ConsoleExporter
A simple span exporter that prints spans to the console.
ConsoleLogRecordExporter
A LogRecordExporter that outputs log records to the console.
ConsoleMetricExporter
ConsoleMetricExporter is a simple exporter that prints metrics to the console.
Context
Represents the immutable context containing active spans, baggage, and other data.
ContextKey<T>
Key for Context values Each instance is unique, even if created with the same name.
ContextPropagator<C>
A propagator for binary values that can inject into and extract from a carrier.
Counter<T extends num>
A synchronous instrument that records monotonically increasing values.
CountingSampler
A sampler that samples every Nth request. Optionally can be combined with conditions to override the count-based decision.
DartLogBridge
A bridge that intercepts Dart's built-in logging and sends it to OpenTelemetry.
EnvironmentService
IO implementation of the environment service.
EnvironmentServiceInterface
Interface for accessing environment variables in a platform-independent manner.
EnvVarResourceDetector
Detects resource information from environment variables.
ErrorSamplingCondition
A sampling condition that forces sampling when a span has an error status.
Exemplar
Exemplar is a sample data point that may be used to annotate aggregated metric data points.
ExemplarFilter
An ExemplarFilter evaluates a measurement to determine if an Exemplar should be sampled.
ExemplarReservoir
An ExemplarReservoir receives measurements from instruments and samples them to provide Exemplars.
Gauge<T extends num>
Gauge is a synchronous instrument that records non-additive values.
GaugeStorage<T extends num>
GaugeStorage is used for storing the last recorded value for each set of attributes.
Histogram<T extends num>
Histogram is a synchronous instrument that records a distribution of values.
HistogramStorage<T extends num>
HistogramStorage is used for storing and accumulating histogram data.
HistogramStorageBase<T extends num>
Storage for histogram metrics that have numeric input but HistogramValue output.
HistogramValue
Represents the value of a histogram metric point.
HostResourceDetector
Stub implementation of HostResourceDetector for non-dart:io platforms. Throws if detect() is called.
HttpHeaderAttribute
Utility class for creating OpenTelemetry HTTP header attribute keys.
IdGenerator
Generates trace and span IDs according to the W3C Trace Context specification.
InstrumentAdvisory
Advisory parameters for metric instrument creation.
InstrumentationScope
Represents the instrumentation scope information.
LoggerProvider
SDK implementation of the APILoggerProvider interface.
LogRecord
Required parameter for LogRecord. According to the spec in https://opentelemetry.io/docs/specs/otel/logs/api/#emit-a-logrecord
LogRecordExporter
A LogRecordExporter exports log records.
LogRecordProcessor
Interface for log record processors that handle log record lifecycle events.
LogsConfiguration
Configuration for logs exporters and processors.
Measurement<T extends num>
Represents a data point reported via the metrics API.
Meter
SDK implementation of the APIMeter interface.
MeterProvider
SDK implementation of the APIMeterProvider interface.
Metric
Metric represents a named collection of data points.
MetricData
MetricData represents a collection of metrics to be exported.
MetricExporter
MetricExporter is responsible for sending metrics to a backend.
MetricPoint<T>
Represents a metric data point, which consists of a value or set of values, a set of attributes, and possibly exemplars.
MetricReader
MetricReader is responsible for collecting metrics from a MeterProvider and passing them to a MetricExporter.
MetricsConfiguration
Configuration for metrics exporters and readers.
MetricsSdkConfig
Resolved metrics SDK configuration derived from environment variables.
MetricStorage
Base storage interface for all metric types. This replaces the old PointStorage with proper input/output type separation.
NamePatternSamplingCondition
A sampling condition that forces sampling when a span's name matches a pattern.
NonRecordingSpan
A non-recording APISpan that carries a SpanContext without recording anything.
NoopCounter<T extends num>
No-op implementation of Counter instrument.
NoopGauge<T extends num>
No-op implementation of Gauge instrument.
NoopHistogram<T extends num>
No-op implementation of Histogram instrument.
NoopMeter
A no-op implementation of Meter that doesn't record any metrics.
NoopObservableCounter<T extends num>
No-op implementation of ObservableCounter instrument.
NoopObservableGauge<T extends num>
No-op implementation of ObservableGauge instrument.
NoopObservableUpDownCounter<T extends num>
No-op implementation of ObservableUpDownCounter instrument.
NoopTextMapPropagator<C, V>
A TextMapPropagator that propagates nothing.
NoopUpDownCounter<T extends num>
No-op implementation of UpDownCounter instrument.
NumericStorage<T extends num>
Storage for metrics that have simple numeric input and output (sum, gauge).
ObservableCounter<T extends num>
ObservableCounter is an asynchronous instrument that reports monotonically increasing values when observed.
ObservableGauge<T extends num>
ObservableGauge is an asynchronous instrument which reports non-additive value(s) when the instrument is being observed.
ObservableResult<T extends num>
Implementation of the APIObservableResult interface for asynchronous instruments.
ObservableUpDownCounter<T extends num>
ObservableUpDownCounter is an asynchronous instrument that reports additive values when observed.
OTel
Main entry point for the OpenTelemetry SDK.
OTelAPI
The OTelAPI is the no-op API implementation of OTel, as required by the specification This class should only be used in the rare case of running without and SDK It is provided to comply with the specification requirement that the API can be used without an SDK installed. The initialize method must be called first. Internally it sets the OTelFactory to OTelAPIFactory. The rest of the methods act like factory constructors for OTelAPI classes.
OTelAPIFactory
The factory used when no SDK is installed. The OpenTelemetry specification requires the API to work without an SDK installed All construction APIs use the factory, such as builders or 'from' helpers.
OTelEntity
Base interface for entity enums.
OTelEnv
Utility class for handling OpenTelemetry environment variables.
OTelErrorHandling
The global error-handling policy hook for OpenTelemetry.
OTelEvent
Base interface for event-name enums.
OTelFactory
The OTelFactory is the plugin mechanism for OpenTelemetry SDK's. The OpenTelemetry specifies that the API must work without any SDK installed. The API uses the OTelAPIFactory as a default. SDKs override this default by registering their own APIFactory
OTelLog
A simple log service that logs messages and signals to the console. It filters messages based on the current log level. Signals are not filtered based on log level Defaults to noop,
OTelLogger
SDK implementation of the APILogger interface.
OTelMetric
Base interface for metric-name enums.
OTelSDKFactory
Factory implementation for creating OpenTelemetry SDK objects.
OTelSemantic
Base interface for OpenTelemetry semantic-convention attribute-key enums. Every generated attribute-key enum implements this; consumers can also implement it on their own app-specific enums to mix into attributesFromSemanticMap.
OTelSemanticIntValue
Marker on every int-valued value enum (e.g. the values of cpython.gc.generation) — exposes the on-wire integer value.
OTelSemanticValue
Marker on every string-valued value enum — exposes the on-wire string value and a toString() that returns it. Modeled on the same shape as OTelSemantic, but kept separate because these are values, not keys.
OtlpGrpcExporterConfig
Configuration for the OtlpGrpcSpanExporter.
OtlpGrpcLogRecordExporter
An OpenTelemetry log record exporter that exports logs using OTLP over gRPC.
OtlpGrpcLogRecordExporterConfig
Configuration for the OpenTelemetry log record exporter that exports logs using OTLP over gRPC.
OtlpGrpcMetricExporter
OtlpGrpcMetricExporter exports metrics to the OpenTelemetry collector via gRPC.
OtlpGrpcMetricExporterConfig
Configuration for the OtlpGrpcMetricExporter.
OtlpGrpcSpanExporter
An OpenTelemetry span exporter that exports spans using OTLP over gRPC.
OtlpHttpExporterConfig
Configuration for the OpenTelemetry span exporter that exports spans using OTLP/HTTP. Wire format defaults to application/x-protobuf and can be switched to application/json via protocol for backends that prefer JSON (e.g. local dev UIs, browser-based viewers).
OtlpHttpLogRecordExporter
An OpenTelemetry log record exporter that exports logs using OTLP over HTTP/protobuf.
OtlpHttpLogRecordExporterConfig
Configuration for the OpenTelemetry log record exporter that exports logs using OTLP/HTTP. Wire format defaults to application/x-protobuf and can be switched to application/json via protocol.
OtlpHttpMetricExporter
An OpenTelemetry metric exporter that exports metrics using OTLP over HTTP/protobuf
OtlpHttpMetricExporterConfig
Configuration for the OpenTelemetry metric exporter that exports metrics using OTLP/HTTP. Wire format defaults to application/x-protobuf and can be switched to application/json via protocol.
OtlpHttpSpanExporter
An OpenTelemetry span exporter that exports spans using OTLP over HTTP/protobuf
OtlpLogRecordTransformer
Transforms internal log record representation to OTLP format.
OtlpSpanTransformer
Transforms internal span representation to OTLP format
ParentBasedSampler
A sampler that respects the parent span's sampling decision.
PeriodicExportingMetricReader
PeriodicExportingMetricReader is a MetricReader that periodically collects metrics and exports them.
PlatformResourceDetector
Factory for creating platform-appropriate resource detectors.
PointStorage<T extends num>
PointStorage is the base class for all metric storage implementations.
ProbabilitySampler
A sampler that randomly samples traces based on a probability.
ProcessResourceDetector
Stub implementation of ProcessResourceDetector for non-dart:io platforms. Throws if detect() is called.
PrometheusExporter
PrometheusExporter exports metrics in Prometheus format. This can be exposed via an HTTP endpoint or written to a file. This could be used on Dart server but not Flutter clients since Prometheus is a pull model and expects stable http servers and a Flutter client typically can't provide that. Dartastic.io offers Prometheus for OTel by forwarding the OTLP data to use Prometheus. To forward OTLP to your own Prometheus backend you would configure an OTel collector similar to the following: receivers:
RateLimitingSampler
A sampler that limits the number of sampled traces per time window.
ReadableLogRecord
A read-only view of a log record.
ReadWriteLogRecord
A mutable view of a log record.
Resource
Represents a resource, which captures identifying information about the entities for which signals (stats, traces, and logs) are reported.
ResourceDetector
Interface for resource detectors that automatically discover resource information.
Sampler
Interface for sampling decision logic.
SamplingCondition
Base class for sampling conditions that can be used with the CountingSampler to override its default behavior based on span properties.
SamplingResult
Result of a sampling decision.
SanitizedSpanException
Sanitized exception data to record on a span.
SDKInstrument
BaseInstrument is the base class for all metric instruments.
SDKLogRecord
SDK implementation of ReadWriteLogRecord.
SDKObservableInstrument
An SDK asynchronous instrument that can receive observations from a batch callback registered with Meter.registerBatchCallback.
SemconvRegistry
Index of every generated semantic-convention enum, plus the registry version this package was generated from.
SimpleFixedSizeExemplarReservoir
A reservoir that retains a fixed number of exemplars.
SimpleLogRecordProcessor
A simple LogRecordProcessor that exports log records immediately.
SimpleSpanProcessor
A simple SpanProcessor that exports spans synchronously when they end.
Span
SDK implementation of the APISpan interface.
SpanContext
Immutable representation of a SpanContext. A SpanContext contains the state that must propagate to child Spans and across process boundaries. SpanContext follows the W3C Trace Context specification.
SpanEvent
Represents an event that occurred during a span's lifetime.
SpanExceptionOptions
Controls how exceptions thrown from the function passed to Tracer.withSpan / Tracer.withSpanAsync (and the convenience methods that route through them) are recorded.
SpanExporter
A SpanExporter exports finished Spans.
SpanId
A span identifier - an 8-byte array with an ID in a base-16 hex format. Follows W3C Trace Context specification.
Represents a link between spans in potentially different traces.
SpanProcessor
Interface for span processors that handle span lifecycle events.
SumStorage<T extends num>
Storage implementation for sum-based metrics like Counter and UpDownCounter.
SystemTimeProvider
Default TimeProvider backed by DateTime.now.
TextMapGetter<T>
TextMapGetter allows an SDK to read values from a carrier object
TextMapPropagator<C, V>
Interface for propagating context between processes using text maps
TextMapSetter<T>
TextMapSetter allows an SDK to set values on a carrier object
TimeProvider
A clock for span start, end, and event timestamps.
Timestamp
Utility class for working with OpenTelemetry timestamps.
TraceBasedExemplarFilter
An ExemplarFilter which makes its sampling decisions based on the trace context.
TraceFlags
Trace flags for a SpanContext. These flags are used to control tracing behavior. TraceFlags follows the W3C Trace Context specification.
TraceId
A trace identifier - a 16-byte array with an ID in a base-16 hex format. TraceId follows the W3C Trace Context specification.
TraceIdRatioSampler
A sampler that samples traces based on a probability defined by the ratio of traces that should be sampled. The ratio must be in the range 0.0, 1.0.
Tracer
SDK implementation of the APITracer interface.
TracerProvider
SDK implementation of the APITracerProvider interface.
TracesConfiguration
Configuration for traces exporters and processors.
TraceState
Key-value pairs carried along with a span context. TraceState follows the W3C Trace Context specification.
UpDownCounter<T extends num>
UpDownCounter is a synchronous instrument that records additive values.
View
View allows for customizing how metrics are collected and exported.
W3CBaggagePropagator
Implementation of the W3C Baggage specification for context propagation.
W3CTraceContextPropagator
Implementation of the W3C Trace Context specification for context propagation.
WebResourceDetector
Detects browser and web-specific resource information.
WebTimeProvider
Native-target stub for WebTimeProvider.

Enums

AggregationTemporality
Defines the aggregation temporality of a metric.
AggregationType
Aggregation defines how measurements for a metric are aggregated.
Android
android.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
AndroidAppState
Values for android.app.state.
AndroidEntity
android entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
AndroidState
Values for android.state.
App
app.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
AppCandidate
Candidate app.* keys with no registry equivalent.
AppEntity
app entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
AppEvent
app event names from the OpenTelemetry semantic conventions.
AppGestureDirectionValue
Candidate values for app.gesture.direction.
AppStartTypeValue
Candidate values for app.start.type.
Artifact
artifact.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Aspnetcore
aspnetcore.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
AspnetcoreAuthenticationResult
Values for aspnetcore.authentication.result.
AspnetcoreAuthorizationResult
Values for aspnetcore.authorization.result.
AspnetcoreDiagnosticsExceptionResult
Values for aspnetcore.diagnostics.exception.result.
AspnetcoreIdentityPasswordCheckResult
Values for aspnetcore.identity.password_check_result.
AspnetcoreIdentityResult
Values for aspnetcore.identity.result.
AspnetcoreIdentitySignInResult
Values for aspnetcore.identity.sign_in.result.
AspnetcoreIdentitySignInType
Values for aspnetcore.identity.sign_in.type.
AspnetcoreIdentityTokenPurpose
Values for aspnetcore.identity.token_purpose.
AspnetcoreIdentityTokenVerified
Values for aspnetcore.identity.token_verified.
AspnetcoreIdentityUserUpdateType
Values for aspnetcore.identity.user.update_type.
AspnetcoreMetric
aspnetcore.* metric instruments from the OpenTelemetry semantic conventions.
AspnetcoreRateLimitingResult
Values for aspnetcore.rate_limiting.result.
AspnetcoreRoutingMatchStatus
Values for aspnetcore.routing.match_status.
Aws
aws.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
AwsEcsLaunchtype
Values for aws.ecs.launchtype.
AwsEntity
aws entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
Az
az.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
AzEvent
az event names from the OpenTelemetry semantic conventions.
Azure
azure.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
AzureCosmosdbConnectionMode
Values for azure.cosmosdb.connection.mode.
AzureCosmosdbConsistencyLevel
Values for azure.cosmosdb.consistency.level.
AzureEvent
azure event names from the OpenTelemetry semantic conventions.
AzureMetric
azure.* metric instruments from the OpenTelemetry semantic conventions.
Browser
browser.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
BrowserCandidate
Candidate browser.* keys with no registry equivalent.
BrowserEntity
browser entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
BrowserEvent
browser event names from the OpenTelemetry semantic conventions.
BrowserWebVitalName
Values for browser.web_vital.name.
BrowserWebVitalNavigationType
Values for browser.web_vital.navigation_type.
BrowserWebVitalRating
Values for browser.web_vital.rating.
Cassandra
cassandra.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
CassandraConsistencyLevel
Values for cassandra.consistency.level.
Cicd
cicd.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
CicdEntity
cicd entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
CicdMetric
cicd.* metric instruments from the OpenTelemetry semantic conventions.
CicdPipelineActionName
Values for cicd.pipeline.action.name.
CicdPipelineResult
Values for cicd.pipeline.result.
CicdPipelineRunState
Values for cicd.pipeline.run.state.
CicdPipelineTaskRunResult
Values for cicd.pipeline.task.run.result.
CicdPipelineTaskType
Values for cicd.pipeline.task.type.
CicdWorkerState
Values for cicd.worker.state.
Client
client.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Cloud
cloud.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
CloudEntity
cloud entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
Cloudevents
cloudevents.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Cloudfoundry
cloudfoundry.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
CloudfoundryEntity
cloudfoundry entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
CloudPlatform
Values for cloud.platform.
CloudProvider
Values for cloud.provider.
Code
code.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ContainerAttributes
container.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ContainerCpuState
Values for container.cpu.state.
ContainerEntity
container entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
ContainerMetric
container.* metric instruments from the OpenTelemetry semantic conventions.
Cpu
cpu.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
CpuMetric
cpu.* metric instruments from the OpenTelemetry semantic conventions.
CpuMode
Values for cpu.mode.
Cpython
cpython.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
CpythonGcGeneration
Values for cpython.gc.generation.
CpythonMetric
cpython.* metric instruments from the OpenTelemetry semantic conventions.
Db
db.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
DbCassandraConsistencyLevel
Values for db.cassandra.consistency_level.
DbClientConnectionsState
Values for db.client.connections.state.
DbClientConnectionState
Values for db.client.connection.state.
DbCosmosdbConnectionMode
Values for db.cosmosdb.connection_mode.
DbCosmosdbConsistencyLevel
Values for db.cosmosdb.consistency_level.
DbCosmosdbOperationType
Values for db.cosmosdb.operation_type.
DbEvent
db event names from the OpenTelemetry semantic conventions.
DbMetric
db.* metric instruments from the OpenTelemetry semantic conventions.
DbSystem
Values for db.system.
DbSystemName
Values for db.system.name.
Deployment
deployment.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
DeploymentEntity
deployment entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
DeploymentEnvironmentName
Values for deployment.environment.name.
DeploymentStatus
Values for deployment.status.
Destination
destination.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Device
device.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
DeviceBatteryStateValue
Candidate values for device.battery.state.
DeviceCandidate
Candidate device.* keys with no registry equivalent.
DeviceEntity
device entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
DeviceEvent
device event names from the OpenTelemetry semantic conventions.
Disk
disk.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
DiskIoDirection
Values for disk.io.direction.
Dns
dns.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
DnsMetric
dns.* metric instruments from the OpenTelemetry semantic conventions.
Dotnet
dotnet.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
DotnetGcHeapGeneration
Values for dotnet.gc.heap.generation.
DotnetMetric
dotnet.* metric instruments from the OpenTelemetry semantic conventions.
Elasticsearch
elasticsearch.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Enduser
enduser.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ErrorAttributes
error.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ErrorType
Values for error.type.
EventAttributes
event.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ExceptionAttributes
exception.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ExceptionEvent
exception event names from the OpenTelemetry semantic conventions.
ExportResult
Result of an export operation.
Faas
faas.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
FaasDocumentOperation
Values for faas.document.operation.
FaasEntity
faas entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
FaasEvent
faas event names from the OpenTelemetry semantic conventions.
FaasInvokedProvider
Values for faas.invoked_provider.
FaasMetric
faas.* metric instruments from the OpenTelemetry semantic conventions.
FaasTrigger
Values for faas.trigger.
FeatureFlag
feature_flag.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
FeatureFlagEvaluationReason
Values for feature_flag.evaluation.reason.
FeatureFlagEvent
feature_flag event names from the OpenTelemetry semantic conventions.
FeatureFlagResultReason
Values for feature_flag.result.reason.
FileAttributes
file.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
FileLockType
Values for file.lock.type.
Gcp
gcp.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
GcpApphubDestinationServiceCriticalityType
Values for gcp.apphub_destination.service.criticality_type.
GcpApphubDestinationServiceEnvironmentType
Values for gcp.apphub_destination.service.environment_type.
GcpApphubDestinationWorkloadCriticalityType
Values for gcp.apphub_destination.workload.criticality_type.
GcpApphubDestinationWorkloadEnvironmentType
Values for gcp.apphub_destination.workload.environment_type.
GcpApphubServiceCriticalityType
Values for gcp.apphub.service.criticality_type.
GcpApphubServiceEnvironmentType
Values for gcp.apphub.service.environment_type.
GcpApphubWorkloadCriticalityType
Values for gcp.apphub.workload.criticality_type.
GcpApphubWorkloadEnvironmentType
Values for gcp.apphub.workload.environment_type.
GcpEntity
gcp entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
GenAi
gen_ai.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
GenAiEvent
gen_ai event names from the OpenTelemetry semantic conventions.
GenAiMetric
gen_ai.* metric instruments from the OpenTelemetry semantic conventions.
GenAiOpenaiRequestResponseFormat
Values for gen_ai.openai.request.response_format.
GenAiOpenaiRequestServiceTier
Values for gen_ai.openai.request.service_tier.
GenAiOperationName
Values for gen_ai.operation.name.
GenAiOutputType
Values for gen_ai.output.type.
GenAiProviderName
Values for gen_ai.provider.name.
GenAiSystem
Values for gen_ai.system.
GenAiTokenType
Values for gen_ai.token.type.
Geo
geo.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
GeoContinentCode
Values for geo.continent.code.
Go
go.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
GoCpuState
Values for go.cpu.state.
GoMemoryType
Values for go.memory.type.
GoMetric
go.* metric instruments from the OpenTelemetry semantic conventions.
Graphql
graphql.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
GraphqlOperationType
Values for graphql.operation.type.
Heroku
heroku.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
HerokuEntity
heroku entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
Host
host.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
HostArch
Values for host.arch.
HostEntity
host entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
Http
http.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
HttpConnectionState
Values for http.connection.state.
HttpEvent
http event names from the OpenTelemetry semantic conventions.
HttpFlavor
Values for http.flavor.
HttpMetric
http.* metric instruments from the OpenTelemetry semantic conventions.
HttpRequestMethod
Values for http.request.method.
Hw
hw.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
HwBatteryState
Values for hw.battery.state.
HwGpuTask
Values for hw.gpu.task.
HwLimitType
Values for hw.limit_type.
HwLogicalDiskState
Values for hw.logical_disk.state.
HwMetric
hw.* metric instruments from the OpenTelemetry semantic conventions.
HwPhysicalDiskState
Values for hw.physical_disk.state.
HwState
Values for hw.state.
HwTapeDriveOperationType
Values for hw.tape_drive.operation_type.
HwType
Values for hw.type.
Ios
ios.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
IosAppState
Values for ios.app.state.
IosState
Values for ios.state.
Jsonrpc
jsonrpc.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Jvm
jvm.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
JvmMemoryType
Values for jvm.memory.type.
JvmMetric
jvm.* metric instruments from the OpenTelemetry semantic conventions.
JvmThreadState
Values for jvm.thread.state.
K8s
k8s.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
K8sContainerEphemeralStorageFsType
Values for k8s.container.ephemeral_storage.fs_type.
K8sContainerStatusReason
Values for k8s.container.status.reason.
K8sContainerStatusState
Values for k8s.container.status.state.
K8sEntity
k8s entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
K8sMetric
k8s.* metric instruments from the OpenTelemetry semantic conventions.
K8sNamespacePhase
Values for k8s.namespace.phase.
K8sNodeConditionStatus
Values for k8s.node.condition.status.
K8sNodeConditionType
Values for k8s.node.condition.type.
K8sPersistentvolumeclaimStatusPhase
Values for k8s.persistentvolumeclaim.status.phase.
K8sPersistentvolumeReclaimPolicy
Values for k8s.persistentvolume.reclaim_policy.
K8sPersistentvolumeStatusPhase
Values for k8s.persistentvolume.status.phase.
K8sPodStatusPhase
Values for k8s.pod.status.phase.
K8sPodStatusReason
Values for k8s.pod.status.reason.
K8sServiceEndpointAddressType
Values for k8s.service.endpoint.address_type.
K8sServiceEndpointCondition
Values for k8s.service.endpoint.condition.
K8sServiceType
Values for k8s.service.type.
K8sVolumeType
Values for k8s.volume.type.
KestrelMetric
kestrel.* metric instruments from the OpenTelemetry semantic conventions.
Linux
linux.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
LinuxMemorySlabState
Values for linux.memory.slab.state.
Log
log.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
LogIostream
Values for log.iostream.
LogLevel
The log levels supported by OTelLog.
Mainframe
mainframe.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Mcp
mcp.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
McpMethodName
Values for mcp.method.name.
McpMetric
mcp.* metric instruments from the OpenTelemetry semantic conventions.
Message
message.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
MessageType
Values for message.type.
Messaging
messaging.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
MessagingEvent
messaging event names from the OpenTelemetry semantic conventions.
MessagingMetric
messaging.* metric instruments from the OpenTelemetry semantic conventions.
MessagingOperationType
Values for messaging.operation.type.
MessagingRocketmqConsumptionModel
Values for messaging.rocketmq.consumption_model.
MessagingRocketmqMessageType
Values for messaging.rocketmq.message.type.
MessagingServicebusDispositionStatus
Values for messaging.servicebus.disposition_status.
MessagingSystem
Values for messaging.system.
MetricPointKind
Defines the kind of metric point.
MetricsExemplarFilter
Exemplar filtering policy for metrics export.
MetricType
Defines the type of metric.
Net
net.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
NetSockFamily
Values for net.sock.family.
NetTransport
Values for net.transport.
Network
network.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
NetworkConnectionState
Values for network.connection.state.
NetworkConnectionSubtype
Values for network.connection.subtype.
NetworkConnectionType
Values for network.connection.type.
NetworkIoDirection
Values for network.io.direction.
NetworkTransport
Values for network.transport.
NetworkType
Values for network.type.
Nfs
nfs.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
NfsMetric
nfs.* metric instruments from the OpenTelemetry semantic conventions.
Nodejs
nodejs.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
NodejsEventloopState
Values for nodejs.eventloop.state.
NodejsMetric
nodejs.* metric instruments from the OpenTelemetry semantic conventions.
Oci
oci.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OncRpc
onc_rpc.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Openai
openai.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OpenaiApiType
Values for openai.api.type.
OpenaiRequestServiceTier
Values for openai.request.service_tier.
Openshift
openshift.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OpenshiftEntity
openshift entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
OpenshiftMetric
openshift.* metric instruments from the OpenTelemetry semantic conventions.
Opentracing
opentracing.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OpentracingRefType
Values for opentracing.ref_type.
Oracle
oracle.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OracleCloud
oracle_cloud.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Os
os.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OsEntity
os entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
OsType
Values for os.type.
Otel
otel.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OtelComponentType
Values for otel.component.type.
OtelEntity
otel entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
OtelMetric
otel.* metric instruments from the OpenTelemetry semantic conventions.
OtelSpanParentOrigin
Values for otel.span.parent.origin.
OtelSpanSamplingResult
Values for otel.span.sampling_result.
OtelStatusCode
Values for otel.status_code.
Other
other.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
OtlpHttpProtocol
Wire-format protocol for OTLP/HTTP exporters.
Peer
peer.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Pool
pool.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Pprof
pprof.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ProcessAttributes
process.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ProcessContextSwitchType
Values for process.context_switch.type.
ProcessCpuState
Values for process.cpu.state.
ProcessEntity
process entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
ProcessMetric
process.* metric instruments from the OpenTelemetry semantic conventions.
ProcessPagingFaultType
Values for process.paging.fault_type.
ProcessState
Values for process.state.
Profile
profile.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ProfileFrameType
Values for profile.frame.type.
Rpc
rpc.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
RpcConnectRpcErrorCode
Values for rpc.connect_rpc.error_code.
RpcEvent
rpc event names from the OpenTelemetry semantic conventions.
RpcGrpcStatusCode
Values for rpc.grpc.status_code.
RpcMessageType
Values for rpc.message.type.
RpcMetric
rpc.* metric instruments from the OpenTelemetry semantic conventions.
RpcSystem
Values for rpc.system.
RpcSystemName
Values for rpc.system.name.
SamplingDecision
The possible decisions a sampler can make.
SamplingDecisionSource
Sources of sampling decisions.
SecurityRule
security_rule.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
SemanticInstrument
The four OTel instrument kinds.
Server
server.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Service
service.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ServiceCriticality
Values for service.criticality.
ServiceEntity
service entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
Session
session.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
SessionEvent
session event names from the OpenTelemetry semantic conventions.
Severity
SeverityLevel
Signalr
signalr.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
SignalrConnectionStatus
Values for signalr.connection.status.
SignalrMetric
signalr.* metric instruments from the OpenTelemetry semantic conventions.
SignalrTransport
Values for signalr.transport.
Source
source.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
SpanKind
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.
SpanStatusCode
The set of canonical status codes.
StateValue
Values for state.
System
system.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
SystemCpuState
Values for system.cpu.state.
SystemFilesystemState
Values for system.filesystem.state.
SystemFilesystemType
Values for system.filesystem.type.
SystemMemoryLinuxHugepagesState
Values for system.memory.linux.hugepages.state.
SystemMemoryLinuxSlabState
Values for system.memory.linux.slab.state.
SystemMemoryState
Values for system.memory.state.
SystemMetric
system.* metric instruments from the OpenTelemetry semantic conventions.
SystemNetworkState
Values for system.network.state.
SystemPagingDirection
Values for system.paging.direction.
SystemPagingFaultType
Values for system.paging.fault.type.
SystemPagingState
Values for system.paging.state.
SystemPagingType
Values for system.paging.type.
SystemProcessesStatus
Values for system.processes.status.
SystemProcessStatus
Values for system.process.status.
Telemetry
telemetry.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
TelemetryEntity
telemetry entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
TelemetrySdkLanguage
Values for telemetry.sdk.language.
Test
test.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
TestCaseResultStatus
Values for test.case.result.status.
TestSuiteRunStatus
Values for test.suite.run.status.
Thread
thread.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
Tls
tls.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
TlsProtocolName
Values for tls.protocol.name.
Url
url.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
User
user.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
UserAgent
user_agent.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
UserAgentSyntheticType
Values for user_agent.synthetic.type.
V8js
v8js.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
V8jsGcType
Values for v8js.gc.type.
V8jsHeapSpaceName
Values for v8js.heap.space.name.
V8jsMetric
v8js.* metric instruments from the OpenTelemetry semantic conventions.
V8jsResourceType
Values for v8js.resource.type.
Vcs
vcs.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
VcsChangeState
Values for vcs.change.state.
VcsEntity
vcs entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
VcsLineChangeType
Values for vcs.line_change.type.
VcsMetric
vcs.* metric instruments from the OpenTelemetry semantic conventions.
VcsProviderName
Values for vcs.provider.name.
VcsRefBaseType
Values for vcs.ref.base.type.
VcsRefHeadType
Values for vcs.ref.head.type.
VcsRefType
Values for vcs.ref.type.
VcsRepositoryRefType
Values for vcs.repository.ref.type.
VcsRevisionDeltaDirection
Values for vcs.revision_delta.direction.
Webengine
webengine.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
WebengineEntity
webengine entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.
Zos
zos.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.
ZosEntity
zos entities from the OpenTelemetry semantic conventions. Each member carries the entity type string plus the attribute keys that identify and describe it.

Mixins

ExemplarSampling<T extends num>
Mixin for managing exemplar sampling policy across storage implementations.

Extensions

AttributesExtension on Map<String, Object>
Extension to create Attributes from a simple Map
DartDeveloperLogBridge on ServiceExtensionHandler
Extension to easily use the logging bridge with dart:developer.
OTelSemanticExtension on OTelSemantic
Extension on OTelSemantic to provide utility methods.

Constants

defaultTimeProvider → const TimeProvider
Platform default TimeProvider for native targets (Dart-VM, AOT, Flutter mobile/desktop): SystemTimeProvider backed by DateTime.now. Selected at compile time via the conditional export in default_time_provider.dart.
deprecatedCandidateKeys → const Set<String>
Keys that have graduated to the registry (or been rejected) and remain here only as @Deprecated members awaiting removal in the next release.
otelAttributeCountLimit → const String
Maximum number of attributes per telemetry item.
otelAttributeValueLengthLimit → const String
Maximum allowed attribute value length.
otelBlrpExportTimeout → const String
Maximum allowed time to export data.
otelBlrpMaxExportBatchSize → const String
Maximum batch size for each export.
otelBlrpMaxQueueSize → const String
Maximum queue size for the batch log record processor.
otelBlrpScheduleDelay → const String
Delay interval between two consecutive exports.
otelBspExportTimeout → const String
Maximum allowed time to export data.
otelBspMaxExportBatchSize → const String
Maximum batch size for each export.
otelBspMaxQueueSize → const String
Maximum queue size for the batch span processor.
otelBspScheduleDelay → const String
Delay interval between two consecutive exports.
otelDartHeaderLogAllowlist → const String
Comma separated OTLP header names whose values may appear in the debug log (Dart-specific). Names are matched case insensitively, and authorization and proxy-authorization are redacted even when listed.
otelDartLogExport → const String
Enables diagnostic logging of export operations when set to "true" (Dart-specific).
otelDartLogMetrics → const String
Enables diagnostic logging of metrics when set to "true" (Dart-specific).
otelDartLogSpans → const String
Enables diagnostic logging of spans when set to "true" (Dart-specific).
otelEventAttributeCountLimit → const String
Maximum number of attributes per span event.
otelExporterOtlpCertificate → const String
Path to the certificate file for verifying server TLS credentials.
otelExporterOtlpClientCertificate → const String
Path to the client certificate file for mTLS (PEM format).
otelExporterOtlpClientKey → const String
Path to the client private key file for mTLS (PEM format).
otelExporterOtlpCompression → const String
Compression algorithm for OTLP exports.
otelExporterOtlpEndpoint → const String
Target endpoint URL for the OTLP exporter.
otelExporterOtlpHeaders → const String
Key-value pairs to be used as headers for OTLP requests.
otelExporterOtlpInsecure → const String
Whether to use an insecure connection for OTLP/gRPC.
otelExporterOtlpLogsCertificate → const String
Certificate file for logs TLS verification.
otelExporterOtlpLogsClientCertificate → const String
Client certificate file for logs mTLS.
otelExporterOtlpLogsClientKey → const String
Client key file for logs mTLS.
otelExporterOtlpLogsCompression → const String
Compression for logs OTLP exports.
otelExporterOtlpLogsEndpoint → const String
Target endpoint URL for logs OTLP exporter.
otelExporterOtlpLogsHeaders → const String
Headers for logs OTLP requests.
otelExporterOtlpLogsInsecure → const String
Whether to use insecure connection for logs OTLP/gRPC.
otelExporterOtlpLogsProtocol → const String
Transport protocol for logs OTLP exporter.
otelExporterOtlpLogsTimeout → const String
Timeout for logs OTLP exports.
otelExporterOtlpMetricInsecure → const String
@deprecated Use OTEL_EXPORTER_OTLP_METRICS_INSECURE instead.
otelExporterOtlpMetricsCertificate → const String
Certificate file for metrics TLS verification.
otelExporterOtlpMetricsClientCertificate → const String
Client certificate file for metrics mTLS.
otelExporterOtlpMetricsClientKey → const String
Client key file for metrics mTLS.
otelExporterOtlpMetricsCompression → const String
Compression for metrics OTLP exports.
otelExporterOtlpMetricsEndpoint → const String
Target endpoint URL for metrics OTLP exporter.
otelExporterOtlpMetricsHeaders → const String
Headers for metrics OTLP requests.
otelExporterOtlpMetricsInsecure → const String
Whether to use insecure connection for metrics OTLP/gRPC.
otelExporterOtlpMetricsProtocol → const String
Transport protocol for metrics OTLP exporter.
otelExporterOtlpMetricsTimeout → const String
Timeout for metrics OTLP exports.
otelExporterOtlpProtocol → const String
Transport protocol for the OTLP exporter.
otelExporterOtlpSpanInsecure → const String
@deprecated Use OTEL_EXPORTER_OTLP_TRACES_INSECURE instead.
otelExporterOtlpTimeout → const String
Maximum time the OTLP exporter will wait for each batch export.
otelExporterOtlpTracesCertificate → const String
Certificate file for traces TLS verification.
otelExporterOtlpTracesClientCertificate → const String
Client certificate file for traces mTLS.
otelExporterOtlpTracesClientKey → const String
Client key file for traces mTLS.
otelExporterOtlpTracesCompression → const String
Compression for traces OTLP exports.
otelExporterOtlpTracesEndpoint → const String
Target endpoint URL for traces OTLP exporter.
otelExporterOtlpTracesHeaders → const String
Headers for traces OTLP requests.
otelExporterOtlpTracesInsecure → const String
Whether to use insecure connection for traces OTLP/gRPC.
otelExporterOtlpTracesProtocol → const String
Transport protocol for traces OTLP exporter.
otelExporterOtlpTracesTimeout → const String
Timeout for traces OTLP exports.
otelExporterPrometheusHost → const String
Host for the Prometheus exporter server.
otelExporterPrometheusPort → const String
Port for the Prometheus exporter server.
otelExporterZipkinEndpoint → const String
Zipkin collector endpoint URL.
otelExporterZipkinTimeout → const String
Maximum time the Zipkin exporter will wait for each batch export.
otelLinkAttributeCountLimit → const String
Maximum number of attributes per span link.
otelLogLevel → const String
Log level used by the SDK internal logger.
otelLogrecordAttributeCountLimit → const String
Maximum number of attributes per log record.
otelLogrecordAttributeValueLengthLimit → const String
Maximum allowed log record attribute value length.
otelLogsExporter → const String
Exporter to use for logs.
otelMetricExportInterval → const String
Interval for periodic metric exports.
otelMetricExportTimeout → const String
Maximum allowed time to export metrics.
otelMetricsExemplarFilter → const String
Exemplar filter to use for metrics.
otelMetricsExporter → const String
Exporter to use for metrics.
otelPropagators → const String
Propagators to be used as a comma-separated list.
otelResourceAttributes → const String
Key-value pairs to be used as resource attributes.
otelSdkDisabled → const String
Disables the SDK for all signals when set to "true".
otelServiceName → const String
Sets the value of the service.name resource attribute.
otelSpanAttributeCountLimit → const String
Maximum number of attributes per span.
otelSpanAttributeValueLengthLimit → const String
Maximum allowed span attribute value length.
otelSpanEventCountLimit → const String
Maximum number of events per span.
otelSpanLinkCountLimit → const String
Maximum number of links per span.
otelTracesExporter → const String
Exporter to use for traces.
otelTracesSampler → const String
Sampler to be used for traces.
otelTracesSamplerArg → const String
Value to be used as the sampler argument.
supportedEnvVars → const Set<String>
Set of all supported OpenTelemetry environment variable names.

Functions

castNum<T extends num>(num value) → T
Converts a num to the instrument's numeric type T.
isMobileBrowser(String userAgent, int? maxTouchPoints) → bool
Whether the browser is running on a mobile device.
otelApiFactoryFactoryFunction({required String apiEndpoint, required String apiServiceName, required String apiServiceVersion}) → OTelFactory
Factory function that creates an instance of OTelAPIFactory.
otelSDKFactoryFactoryFunction({required String apiEndpoint, required String apiServiceName, required String apiServiceVersion}) → OTelFactory
Factory function that creates an OTelSDKFactory with the specified configuration.
otlpHttpProtocolFromString(String value) → OtlpHttpProtocol?
Parses the OTel OTEL_EXPORTER_OTLP_PROTOCOL env-var value into an OtlpHttpProtocol. Returns null for unsupported values (e.g. grpc — caller is expected to handle that out-of-band by selecting an OTLP/gRPC exporter instead).

Typedefs

AttributeLimitsEnvironmentValues = ({int? attributeCountLimit, int? attributeValueLengthLimit})
Raw attribute limit values parsed by OTelEnv.getAttributeLimits.
BatchObservableCallback = void Function(BatchObservableResult result)
Callback for batch observations across multiple instruments.
BlrpEnvironmentValues = ({Duration? exportTimeout, int? maxExportBatchSize, int? maxQueueSize, Duration? scheduleDelay})
Raw BLRP environment values parsed by OTelEnv.getBlrpConfig.
BspEnvironmentValues = ({Duration? exportTimeout, int? maxExportBatchSize, int? maxQueueSize, Duration? scheduleDelay})
Raw BSP environment values parsed by OTelEnv.getBspConfig.
ExceptionSanitizer = SanitizedSpanException Function(Object error, StackTrace stackTrace)
Callback that transforms a raw exception into sanitized span data.
LogFunction = void Function(String)
Function type for logging operations
MetricsEnvironmentValues = ({String? exemplarFilter, Duration? exportInterval, Duration? exportTimeout})
Raw metrics environment values parsed by OTelEnv.getMetricsConfig.
ObservableCallback<T extends num> = void Function(APIObservableResult<T> result)
A callback function for observable instruments.
OTelErrorHandler = void Function(Object error, StackTrace? stackTrace)
Signature of a global OpenTelemetry error handler.
OTelFactoryCreationFunction = OTelFactory Function({required String apiEndpoint, required String apiServiceName, required String apiServiceVersion})
A function that creates the OTel Factory, used by initialize methods
OtlpEnvironmentValues = ({String? certificate, String? clientCertificate, String? clientKey, String? compression, String? endpoint, Map<String, String>? headers, bool? insecure, String? protocol, Duration? timeout})
Raw OTLP environment values parsed by OTelEnv.getOtlpConfig.
ServiceEnvironmentValues = ({String? serviceName, String? serviceVersion})
Raw service environment values parsed by OTelEnv.getServiceConfig.