Skip to content

Commit

Permalink
editoast: make 'AxumOtelLayer' act as 'INFO' level
Browse files Browse the repository at this point in the history
By default, the 'AxumOtelLayer' only creates span at 'TRACE' level.
That means that if you try `tracing::Span::current()` in a handler,
you will get a `Span::none()` in response. This span is useless (it
doesn't have a subscriber, no metadata): it can't be used with
OpenTelemetry since all interactions between 'tracing' and 'opentelemetry'
happens through `Span::with_subscriber()`.

Signed-off-by: Jean SIMARD <[email protected]>
  • Loading branch information
woshilapin committed Dec 19, 2024
1 parent 4c50272 commit 1033678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editoast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ axum-extra = { version = "0.9.6", default-features = false, features = [
"typed-header",
] }
axum-test = { version = "16.4.1", default-features = false }
axum-tracing-opentelemetry = { version = "0.24.1", default-features = false }
axum-tracing-opentelemetry = { version = "0.24.1", default-features = false, features = [
"tracing_level_info",
] }
chrono.workspace = true
clap = { version = "4.5.23", features = ["derive", "env"] }
colored = "2.2.0"
Expand Down

0 comments on commit 1033678

Please sign in to comment.