-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(profiling): Transfer profile ID when the event has been extracted #2733
Conversation
@@ -2756,6 +2769,7 @@ impl EnvelopeProcessorService { | |||
}); | |||
|
|||
self.extract_event(state)?; | |||
self.transfer_profile_id(state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main change of this PR: The transfer of the profile ID happens after event extraction. The rest of the PR is largely identical with #2715.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's 🚢 it again!
relay-server/src/actors/processor.rs
Outdated
|
||
#[tokio::test] | ||
async fn test_profile_id_transfered() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have to be tokio::test
and async
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 It can be sync if I use dummy Addr
s instead of mock_service
. Changed here: e68e1ba
Relay copies profile IDs into a transaction context in order to associate profiles to transactions.
In #2715, we tried to move this extraction to a point before dynamic sampling, so we can define transaction sampling rules based on the profile ID. However, the PR tried to do this at a point where the event had not been parsed yet, resulting in the profile ID always missing.
As @olksdr pointed out,