Skip to content
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): Generate a new profile ID when splitting a profile for multiple transactions #1473

Merged
merged 4 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions relay-profiling/src/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ pub fn expand_android_profile(payload: &[u8]) -> Result<Vec<Vec<u8>>, ProfileErr
for transaction in &profile.transactions {
let mut new_profile = profile.clone();

new_profile.profile_id = EventId::new();
new_profile.set_transaction(transaction);
new_profile.transactions.clear();

Expand Down
1 change: 1 addition & 0 deletions relay-profiling/src/cocoa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ pub fn expand_cocoa_profile(payload: &[u8]) -> Result<Vec<Vec<u8>>, ProfileError
for transaction in &profile.transactions {
let mut new_profile = profile.clone();

new_profile.profile_id = EventId::new();
new_profile.set_transaction(transaction);
new_profile.transactions.clear();

Expand Down