Module opentelemetry

Source
Available on crate feature opentelemetry only.
Expand description

Opentelemetry support

Structs§

OpenTelemetry
OpenTelemetry configuration.

Modules§

global
Utilities for working with global telemetry primitives
baggage
Primitives for sending name/value data across system boundaries.
context
Execution-scoped context propagation.
metrics
OpenTelemetry Metrics API
propagation
OpenTelemetry Propagator interface
trace
API for tracing applications and libraries.
logs
OpenTelemetry Logs Bridge API

Macros§

otel_info
Note: These macros (otel_info!, otel_warn!, otel_debug!, and otel_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.
otel_debug
Macro for logging debug messages in OpenTelemetry.
otel_error
Macro for logging error messages in OpenTelemetry.

Structs§

Context
An execution-scoped collection of values.
ContextGuard
A guard that resets the current context to the prior context when dropped.
SpanId
An 8-byte value which identifies a given span.
TraceFlags
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.

Structs§

InstrumentationScope
Information about a library or crate providing instrumentation.
InstrumentationScopeBuilder
Configuration options for InstrumentationScope.
Key
The key part of attribute KeyValue pairs.
KeyValue
A key-value pair describing an attribute.
StringValue
Wrapper for string-like values

Enums§

Value
The value part of attribute KeyValue pairs.