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

feat: allow root. in field list for dynamic sampler #1275

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Aug 14, 2024

Which problem is this PR solving?

To reduce the cardinality in sampler keys for dynamic sampler in Refinery, it's helpful to be able to only select fields on root spans.

fixes #1130

Short description of the changes

  • parse field list on dynamic sampler startup to see if there's root. in field list
  • store fields for root span only separately from fields applies to all spans in traceKey
  • loop through both field list to make sure keys are correctly populated

@VinozzZ VinozzZ requested a review from a team as a code owner August 14, 2024 22:46
@VinozzZ VinozzZ added this to the v2.8 milestone Aug 14, 2024
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

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

Looks good!

sample/trace_key.go Outdated Show resolved Hide resolved
@VinozzZ VinozzZ merged commit 244e0e4 into main Aug 15, 2024
5 checks passed
@VinozzZ VinozzZ deleted the yingrong.root_prefix_dynamic_sampler branch August 15, 2024 14:51
MikeGoldsmith pushed a commit that referenced this pull request Oct 23, 2024
…#1396)

## Short description of the changes

- This PR documents the feature from #1275, showing our users how to
specify the `root.` prefix in FieldLists everywhere
- It also sprinkles the use of this feature around the
`rules_complete.yaml` example

Signed-off-by: Irving Popovetsky <[email protected]>
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.

Feature Request: Allow trace root context in Dynamic Sampler FieldLIsts
2 participants