Available on crate feature
opentelemetry
only.Expand description
Opentelemetry support
Modules§
- baggage
- Primitives for sending name/value data across system boundaries.
- context
- Execution-scoped context propagation.
- global
- Utilities for working with global telemetry primitives
- logs
- OpenTelemetry Logs Bridge API
- metrics
- OpenTelemetry Metrics API
- propagation
- OpenTelemetry Propagator interface
- trace
- API for tracing applications and libraries.
Macros§
- otel_
debug - Macro for logging debug messages in OpenTelemetry.
- otel_
error - Macro for logging error messages in OpenTelemetry.
- otel_
info - Note: These macros (
otel_info!
,otel_warn!
,otel_debug!
, andotel_error!
) are intended to be used internally within OpenTelemetry code or for custom exporters, processors and other plugins. They are not designed for general application logging and should not be used for that purpose. - otel_
warn - Macro for logging warning messages in OpenTelemetry.
Structs§
- Context
- An execution-scoped collection of values.
- Context
Guard - A guard that resets the current context to the prior context when dropped.
- Instrumentation
Scope - Information about a library or crate providing instrumentation.
- Instrumentation
Scope Builder - Configuration options for InstrumentationScope.
- Key
- The key part of attribute KeyValue pairs.
- KeyValue
- A key-value pair describing an attribute.
- Open
Telemetry - OpenTelemetry configuration.
- SpanId
- An 8-byte value which identifies a given span.
- String
Value - Wrapper for string-like values
- Trace
Flags - Flags that can be set on a
SpanContext
. - TraceId
- A 16-byte value which identifies a given trace.
Enums§
- Array
- A Value::Array containing homogeneous values.
- Value
- The value part of attribute KeyValue pairs.