Skip to content

feat(issues): Add parameterization for traceparent #93721

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

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

mrduncan
Copy link
Member

@mrduncan mrduncan commented Jun 17, 2025

These are currently parameterized as something like the following which is unhelpful for grouping (redacted example): <int>-<md5>-0a0000000000abcd<int>.

The regex here is intentionally strict and will only support the current version (00) to help ensure this is conservative in matching.

The option for this is done outside of our normal path since we need the traceparent parameterization to happen before int/md5 in the order of operations. Once this is rolled out, a follow-up PR will clean up quite a bit of our experiment logic here.

See also: https://www.w3.org/TR/trace-context/#traceparent-header

These are currently parameterized as something like the following
(redacted example): `<int>-<md5>-0a0000000000abcd<int>`.

The regex here is intentionally strict and will only support the current
version (`00`) to help ensure this is conservative in matching.

See https://www.w3.org/TR/trace-context/#traceparent-header
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 17, 2025
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93721      +/-   ##
==========================================
+ Coverage   88.00%   88.03%   +0.02%     
==========================================
  Files       10322    10342      +20     
  Lines      594787   596506    +1719     
  Branches    23139    23139              
==========================================
+ Hits       523450   525108    +1658     
- Misses      70844    70905      +61     
  Partials      493      493              

"url",
"hostname",
"ip",
"traceparent",
Copy link
Member Author

Choose a reason for hiding this comment

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

This line is the only difference from REGEX_PATTERN_KEYS above

@mrduncan mrduncan marked this pull request as ready for review June 18, 2025 18:24
@mrduncan mrduncan requested a review from a team as a code owner June 18, 2025 18:24
@mrduncan mrduncan merged commit 9037647 into master Jun 18, 2025
67 checks passed
@mrduncan mrduncan deleted the mrduncan/traceparent-parameterization branch June 18, 2025 20:36
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
These are currently parameterized as something like the following which
is unhelpful for grouping (redacted example):
`<int>-<md5>-0a0000000000abcd<int>`.

The regex here is intentionally strict and will only support the current
version (`00`) to help ensure this is conservative in matching.

The option for this is done outside of our normal path since we need the
`traceparent` parameterization to happen before `int`/`md5` in the order
of operations. Once this is rolled out, a follow-up PR will clean up
quite a bit of our experiment logic here.

See also: https://www.w3.org/TR/trace-context/#traceparent-header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants