Skip to main content

Crate otel_log_wrapper

Crate otel_log_wrapper 

Source
Expand description

One-line OpenTelemetry setup for services that use tracing.

otel_log_wrapper::init!()?;
tracing::info!("service started");

Re-exports§

pub use init_tracing_opentelemetry;
pub use opentelemetry;
pub use tracing;

Macros§

init

Structs§

BuildMetadata
LoggerConfig
LoggerConfigBuilder

Enums§

Error
LoggerFormat

Constants§

DEFAULT_ENDPOINT
DEFAULT_PROTOCOL

Functions§

init_logger
init_logger_guard

Type Aliases§

LoggerGuard