Crate tembo_telemetry
source ·Expand description
tembo-telemetry
is a crate that provides logging and telemetry exporters for Tembo.io applications.
It integrates with the OpenTelemetry ecosystem to provide detailed traces.
Features
- Configurable telemetry setup via
TelemetryConfig
. - Integration with the OpenTelemetry and tracing ecosystems.
- Out-of-the-box support for OTLP exporters.
- Environment-specific logger configurations.
Usage
Refer to the TelemetryConfig
and TelemetryInit
traits for setting up and initializing telemetry.
Structs
- Custom root span builder that allows for filtering out specific routes.
- Builder for creating a custom logging middleware.
- Configuration for telemetry setup.
Traits
- Trait to initialize telemetry based on the provided configuration.
Functions
- Convenience function to obtain a
CustomLoggerBuilder
.