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: annotate incoming sample rate #658

Merged
merged 6 commits into from
Apr 7, 2023
Merged

Conversation

fchikwekwe
Copy link
Contributor

Closes #612

This issue simply annotates all incoming spans that have an original sample rate.

@fchikwekwe fchikwekwe requested a review from a team as a code owner April 6, 2023 14:52
@fchikwekwe fchikwekwe self-assigned this Apr 6, 2023
@fchikwekwe fchikwekwe added this to the v1.21 milestone Apr 6, 2023
@fchikwekwe fchikwekwe force-pushed the faith/annotate-sample-rate branch from db92775 to f4a1d9f Compare April 6, 2023 14:53
@fchikwekwe fchikwekwe changed the title add: annotate incoming sample rate feat: annotate incoming sample rate Apr 6, 2023
Copy link
Contributor

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

Is there a test that confirms original_sample_rate is not set if sp.SampleRate == 0?

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.

One silly formatting nit; otherwise looks good!

collect/collect.go Outdated Show resolved Hide resolved
@fchikwekwe fchikwekwe force-pushed the faith/annotate-sample-rate branch from eb09ef6 to 3eeaec1 Compare April 7, 2023 15:19
fchikwekwe and others added 2 commits April 7, 2023 11:20
@fchikwekwe fchikwekwe merged commit 8c4e99b into main Apr 7, 2023
@fchikwekwe fchikwekwe deleted the faith/annotate-sample-rate branch April 7, 2023 15:36
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.

If spans come in with existing Sample Rate > 1, we should annotate them
3 participants