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): Only transfer valid profile ids #3809

Merged
merged 9 commits into from
Jul 12, 2024

Conversation

Zylphrex
Copy link
Member

This was transfering the profile id onto the transaction all the time which is not desirable since we need to fully validate the profile first.

This was transfering the profile id onto the transaction all the time which is
not desirable since we need to fully validate the profile first.
@Zylphrex Zylphrex requested a review from a team as a code owner July 10, 2024 17:38
@Zylphrex Zylphrex requested a review from a team July 10, 2024 17:38
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We transfer the profile ID into the event before dynamic sampling to enable a specific dynamic sampling bias, see #2710.

If this dynamic sampling behavior is no longer needed, we can go ahead with the PR and integrate the transfer into profile::process as David suggested.

CHANGELOG.md Outdated Show resolved Hide resolved
@Zylphrex
Copy link
Member Author

@jjbayer Ahh I wasn't aware of that. The issue I'm trying to address here is that by transferring the profile id before processing the profile, it's possible that the profile is invalid and references should be removed from the transaction as well.

I've updated the PR to transfer the profile id twice. Once for dynamic sampling, and once after the processing to handle this. Are there any issues with this?

@Zylphrex Zylphrex requested a review from jjbayer July 11, 2024 13:59
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the PR to transfer the profile id twice. Once for dynamic sampling, and once after the processing to handle this. Are there any issues with this?

That should work, yes.

@Zylphrex Zylphrex merged commit 8806f9c into master Jul 12, 2024
23 checks passed
@Zylphrex Zylphrex deleted the txiao/fix/only-transfer-valid-profile-ids branch July 12, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants