Closed as not planned
Closed as not planned
Description
Environment
I'm instrumenting an axum web app, using the default set of tower middleware, tags / user fields set using sentry::configure_scope
land on error reporting events, but they are missing from Performance transactions.
Steps to Reproduce
-
Set up the default sentry_tower layers:
.layer(sentry_tower::NewSentryLayer::new_from_top()) .layer(sentry_tower::SentryHttpLayer::with_transaction())
-
In a handler (or another layer, it doesn't matter) sets user information or tags on the scope using the (docs-recommended) method, like:
sentry::configure_scope(|scope| {
scope.set_tag("lz_transaction", "woo weeee");
scope.set_user(Some(User {
id: Some(user.id.id().to_string()),
username: Some(user.name.to_owned()),
..Default::default()
}));
});
- Call up a normally-succeeding handler
- Put
panic!("oops");
in that handler to get an error event.
Expected Result
I'd like the transactions list in Performance to list Users and other tags, like sentry does in error events.
Actual Result
The error event has a user set, but the performance transaction doesn't.
Metadata
Metadata
Assignees
Labels
No labels