Skip to content

Commit c4a36b0

Browse files
committed
docs: update sample
1 parent 97f6dda commit c4a36b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

axum-tracing-opentelemetry/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ use axum_tracing_opentelemetry::middleware::{OtelAxumLayer, OtelInResponseLayer}
2020
2121
#[tokio::main]
2222
async 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

4646
For 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)

0 commit comments

Comments
 (0)