-
-
Notifications
You must be signed in to change notification settings - Fork 525
Open
Description
Issue Description
Per the Metrics documentation, user information is supposed to be added to any metrics published. At present with version 6.3.0, however, this does not appear to be the case.
Reproduction Steps
- Call
Sentry.set_userin the baseApplicationController. - Attempt to log metrics from a controller that inherits this.
Specific code that triggers this bug:
Sentry.metrics.count(
"my.metric.here",
value: 1,
attributes: {
"some.metric.path": "some_value"
}
A logger.warn("SENTRY USER INFO:", Sentry.get_current_scope.user) statement immediately prior does print user information, so it's definitely there within the scope.
Expected Behavior
The final metrics attributes contains user.id and user.email.
Actual Behavior
Only the metrics passed in via attributes make it to the final metrics uploaded to the Sentry dashboard.
Ruby Version
4.0.1
SDK Version
6.3.0
Integration and Its Version
Rails 8.1.2
Sentry Config
Metadata
Metadata
Assignees
Projects
Status
No status