Skip to content

Commit

Permalink
docs(tower): Mention how to enable http feature from sentry crate (#622)
Browse files Browse the repository at this point in the history
It is common to have this integration pulled in via the tower feature
of the sentry crate.  In this case it is convenient to know about the
shortcut of the tower-http feature instead of having to add a direct
dependency to sentry-tower.
  • Loading branch information
flub committed Oct 25, 2023
1 parent 6c5335b commit 73526ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sentry-tower/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@
//!
//! ## Usage with `tower-http`
//!
//! The `http` feature offers another layer which will attach request details
//! onto captured events, and optionally start a new performance monitoring
//! transaction based on the incoming HTTP headers.
//! The `http` feature of the `sentry-tower` crate offers another layer which will attach
//! request details onto captured events, and optionally start a new performance monitoring
//! transaction based on the incoming HTTP headers. When using the tower integration via
//! `sentry::integrations::tower`, this feature can also be enabled using the `tower-http`
//! feature of the `sentry` crate instead of the `tower` feature.
//!
//! The created transaction will automatically use the request URI as its name.
//! This is sometimes not desirable in case the request URI contains unique IDs
Expand Down

0 comments on commit 73526ec

Please sign in to comment.