Expand description
Utilities for tracing and logging.
Some fairly opinionated!
Re-exports§
pub use opentelemetry_semantic_conventions as semcov;pub use tower_tracing::*;
Modules§
Structs§
- Grpc
Interceptor - This interceptor adds tokio tracing opentelemetry headers to grpc requests. Allows stitching together distributed traces!
- Logging
Setup Build Result - Hang on to this to be able to call
shutdown()on the providers. - Logging
Setup Builder - Metadata
Injector
Enums§
Constants§
- NO_OTLP
- This will override OTEL_TRACES_EXPORTER if set.
- OTEL_
TRACES_ EXPORTER - The env var that controls whether to use OTLP or not. Accepts “otlp” or “none”.
Traits§
- Open
Telemetry Span Ext - Utility functions to allow tracing
Spans to accept and return OpenTelemetryContexts.
Functions§
- set_
up_ logging - Set up an OTEL pipeline when the OTLP endpoint is set. Otherwise just set up tokio tracing support.
Type Aliases§
- Intercepted
Grpc Service - A tonic channel intercepted to provide distributed tracing context propagation.