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

1306: Adding support for composite sampling policy to the tailsampler #4396

Closed
wants to merge 8 commits into from

Conversation

vikrambe
Copy link
Contributor

@vikrambe vikrambe commented Aug 1, 2021

Is your feature request related to a problem? Please describe.
#1410
Design Doc - Added support for composite policy in tailsampling processor. This would help in grouping sampling policies and rate limiting them. https://docs.google.com/document/d/10wpIv3TtXgOik05smHm3nYeBX48Bj76TCMxPy8e1NZw/edit#heading=h.ecy5l2puwtp4
This is a split. Refer PR open-telemetry/opentelemetry-collector#1894 (comment)

Link to tracking Issue: 1306

@vikrambe vikrambe requested a review from jpkrohling as a code owner August 1, 2021 16:10
@vikrambe vikrambe requested a review from a team August 1, 2021 16:10
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 1, 2021

CLA Missing ID

processor/tailsamplingprocessor/README.md Outdated Show resolved Hide resolved
processor/tailsamplingprocessor/README.md Show resolved Hide resolved
processor/tailsamplingprocessor/composite_helper.go Outdated Show resolved Hide resolved
processor/tailsamplingprocessor/composite_helper.go Outdated Show resolved Hide resolved
processor/tailsamplingprocessor/composite_helper.go Outdated Show resolved Hide resolved
}

// Now we hit the rate limit, so subsequent evaluations should result in 100% NotSampled
for i := 0; i < totalSPS; i++ {
Copy link
Member

Choose a reason for hiding this comment

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

You just need one more iteration, don't you?

Copy link
Member

Choose a reason for hiding this comment

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

The same applies to further places in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jpkrohling Maybe i am missing something here. Why do we need one more iteration ? We are running above loop to assert that "Once the totalSPS capacity is exhausted [i.e. rate_limts], we deliberately mark the matching spans a Not_Sampled"

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@vikrambe
Copy link
Contributor Author

@jpkrohling thanks for the review. Sorry for the delay. Let me take care of the comments shortly and update the PR

@vikrambe
Copy link
Contributor Author

/easycla

@jpkrohling
Copy link
Member

@vikrambe, once this is ready for another review, please ping me (or click "request re-review")

@vikrambe
Copy link
Contributor Author

@jpkrohling Had a issue with EasyCLA and was running into rebase issue. I have opened a new PR #4958 - Its continuation of this PR.

@vikrambe vikrambe closed this Aug 29, 2021
tigrannajaryan pushed a commit that referenced this pull request Oct 21, 2021
Is your feature request related to a problem? Please describe.
#1410
Design Doc - Added support for composite policy in tailsampling processor. This would help in grouping sampling policies and rate limiting them. https://docs.google.com/document/d/10wpIv3TtXgOik05smHm3nYeBX48Bj76TCMxPy8e1NZw/edit#heading=h.ecy5l2puwtp4
This is a split. Refer PR open-telemetry/opentelemetry-collector#1894 (comment)

Due to EasyCLA issue opening a new PR: #4396

Link to tracking Issue: 1306
hex1848 pushed a commit to hex1848/opentelemetry-collector-contrib that referenced this pull request Jun 2, 2022
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.

4 participants