Crate opentelemetry_tracing_utils

Source
Expand description

Utilities for tracing and logging.

Some fairly opinionated!

Re-exports§

pub use opentelemetry_semantic_conventions as semcov;
pub use tower_tracing::*;

Modules§

tower_tracing
trace_output_fmt

Structs§

GrpcInterceptor
This interceptor adds tokio tracing opentelemetry headers to grpc requests. Allows stitching together distributed traces!
LoggingSetupBuildResult
Hang on to this to be able to call shutdown() on the providers.
LoggingSetupBuilder
MetadataInjector

Traits§

OpenTelemetrySpanExt
Utility functions to allow tracing Spans to accept and return OpenTelemetry Contexts.

Functions§

set_up_logging
Set up an OTEL pipeline when the OTLP endpoint is set. Otherwise just set up tokio tracing support.

Type Aliases§

InterceptedGrpcService
A tonic channel intercepted to provide distributed tracing context propagation.