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

Finish up configs for tail sampling policies #221

Merged
merged 4 commits into from
Aug 7, 2019

Conversation

songy23
Copy link
Member

@songy23 songy23 commented Aug 2, 2019

Fixes #146.

Note one additional change is now each tail sampling processor can only
accept one policy, because one processor can only have one next
consumer. If users need more than one policies they can define multiple
tail sampling processors in the config.

@codecov-io
Copy link

codecov-io commented Aug 2, 2019

Codecov Report

Merging #221 into master will increase coverage by 0.72%.
The diff coverage is 55.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #221      +/-   ##
==========================================
+ Coverage   72.79%   73.52%   +0.72%     
==========================================
  Files         110      110              
  Lines        6338     6369      +31     
==========================================
+ Hits         4614     4683      +69     
+ Misses       1491     1450      -41     
- Partials      233      236       +3
Impacted Files Coverage Δ
defaults/defaults.go 80% <100%> (+0.68%) ⬆️
processor/tailsampling/processor.go 71.22% <54.76%> (+25.62%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b39842b...7f82247. Read the comment docs.

@pjanotti
Copy link
Contributor

pjanotti commented Aug 2, 2019

@songy23 the change itself looks good. As you pointed, correctly, it is not possible with the new config (as it is at this moment) to select the exporters/destinations of each police as before. However, I think that there is still value in having multiple policies per instance of tail sampling processor. Did you hit any blocker in that path? If yes we can start with single as in the PR and later make the work to support multiple.

@songy23 songy23 force-pushed the tail-sampling-config branch from f76be2a to 4f69894 Compare August 2, 2019 20:31
@songy23
Copy link
Member Author

songy23 commented Aug 2, 2019

I don't see any blocker here. We can add multiple policies in one processor though they all pass the trace data to the same consumer.

@pjanotti
Copy link
Contributor

pjanotti commented Aug 2, 2019

Yes, it will be the same consumer but they still can combine policies so it is closer (not equal) in capability to what we had before.

@songy23 songy23 force-pushed the tail-sampling-config branch from 4f69894 to 7f82247 Compare August 5, 2019 19:00
@songy23
Copy link
Member Author

songy23 commented Aug 5, 2019

7f82247 restored the ability on having multiple policies per instance of tail sampling processor. PTAL.

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

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

Thanks @songy23! LGTM.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

Sorry for delayed review. Generally LGTM, with one comment/question.

// RateLimiting allows all traces until the specified limits are satisfied.
RateLimiting PolicyType = "rate-limiting"
// RateLimitingFilter allows all traces until the specified limits are satisfied.
RateLimitingFilter PolicyType = "rate-limiting-filter"
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the suffix -filter? Are their any policies that are not filters? If not I think it would be simpler to just drop it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added because all other policies have the "-filter" suffix. We can remove it from all other configs instead, I don't have a strong preference here.

Copy link
Member

Choose a reason for hiding this comment

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

I vote for removing from all, unless there is a reason for the -filter prefix. @pjanotti @bogdandrutu what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed: the suffix seems unnecessary, I don't recall any reason to have them.

Copy link
Member Author

Choose a reason for hiding this comment

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

SG, updated in 39c52bd.

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

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

LGTM @songy23

@pjanotti pjanotti merged commit c4d4adf into open-telemetry:master Aug 7, 2019
@songy23
Copy link
Member Author

songy23 commented Aug 7, 2019

Thanks :)

@songy23 songy23 deleted the tail-sampling-config branch August 7, 2019 16:37
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Remove the experimental SDK

* Remove the experimental SDK from README.md

* Remove the experimental SDK from Makefile
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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.

Implement factory and config for "tail-sampling" processor
4 participants