File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
axum-tracing-opentelemetry Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ use axum_tracing_opentelemetry::middleware::{OtelAxumLayer, OtelInResponseLayer}
2020
2121#[tokio::main]
2222async fn main() -> Result<(), axum::BoxError> {
23- // very opinionated init of tracing, look at the source to make your own
24- let _guard = init_tracing_opentelemetry::tracing_subscriber_ext::init_subscribers ()?;
23+ // very opinionated init of tracing, look as is source to make your own
24+ let _guard = init_tracing_opentelemetry::TracingConfig::production().init_subscriber ()?;
2525
2626 let app = app();
2727 // run it
@@ -45,6 +45,8 @@ fn app() -> Router {
4545
4646For more info about how to initialize, you can look at crate [ ` init-tracing-opentelemetry ` ] or [ ` tracing-opentelemetry ` ] .
4747
48+ ![ screenshot] ( ../examples/axum-otlp/Screenshot-20251103_1308.jpg )
49+
4850## Changelog - History
4951
5052[ CHANGELOG.md] ( https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk/blob/main/CHANGELOG.md )
You can’t perform that action at this time.
0 commit comments