Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SG60 committed Nov 4, 2024
1 parent c95bc34 commit e546699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/opentelemetry-tracing-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ new headers:
/// if any and valid.
///
/// This uses the tower-http crate
///
/// For propagation to work, RUST_LOG needs to include this crate, and also tower_http if you
/// want access log events from there.
pub fn make_tower_http_otel_trace_layer<BodyType>() -> TraceLayer<
SharedClassifier<ServerErrorsAsFailures>,
impl (Fn(&Request<BodyType>) -> tracing::Span) + Clone,
Expand Down

0 comments on commit e546699

Please sign in to comment.