You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
poem = { version = "3.1.12", features = ["cookie", "tower-compat"] }
sentry = { version = "0.43.0", features = ["tower-axum-matched-path"] }
But I get an error when trying to convert SentryHttpLayer to a compatible Tower layer (fully qualified compat for clarity):
use sentry::integrations::tower::{NewSentryLayer,SentryHttpLayer};
....with(poem::middleware::TowerLayerCompatExt::compat(NewSentryLayer::<poem::Request>::new_from_top(),))// error:.with(poem::middleware::TowerLayerCompatExt::compat(SentryHttpLayer::new().enable_transaction(),))
I'm getting
the trait bound SentryHttpService<EndpointToTowerService<...>>: Service<...> is not satisfied
I have also tried switching the order as per the bit about axum here with the same result.
Is this something I can work around? Is it a poem or Sentry issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add Sentry middleware to my Poem server following this guide: https://docs.sentry.io/platforms/rust/guides/axum/
and this example.
cargo.toml:
But I get an error when trying to convert SentryHttpLayer to a compatible Tower layer (fully qualified compat for clarity):
I'm getting
I have also tried switching the order as per the bit about axum here with the same result.
Is this something I can work around? Is it a poem or Sentry issue?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions