-
Notifications
You must be signed in to change notification settings - Fork 933
Add spec for AlwaysRecord sampler #4699
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -51,6 +51,7 @@ weight: 3 | |||||||
| * [ComposableParentThreshold](#composableparentthreshold) | ||||||||
| * [ComposableRuleBased](#composablerulebased) | ||||||||
| * [ComposableAnnotating](#composableannotating) | ||||||||
| + [AlwaysRecord](#alwaysrecord) | ||||||||
| * [Sampling Requirements](#sampling-requirements) | ||||||||
| + [TraceID randomness](#traceid-randomness) | ||||||||
| + [Random trace flag](#random-trace-flag) | ||||||||
|
|
@@ -731,6 +732,20 @@ This example creates a configuration where: | |||||||
| - Other root spans are sampled at 10% | ||||||||
| - Child spans follow their parent's sampling decision | ||||||||
|
|
||||||||
| #### AlwaysRecord | ||||||||
|
|
||||||||
| **Status**: [Development](../document-status.md) | ||||||||
|
|
||||||||
| This is a sampler decorator. `AlwaysRecord` helps to have spans between always be processed by `SpanProcessor`s. It returns the following given a sampled flag from the root sampler: | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please make the line length wrapping consistent with the reset of the document and the rest of the changes here. |
||||||||
| * Root sampler returns `DROP` -> AlwaysRecord returns `RECORD_ONLY` | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| * Root sampler returns `RECORD_ONLY` -> AlwaysRecord returns `RECORD_ONLY` | ||||||||
| * Root sampler returns `RECORD_AND_SAMPLE` -> AlwaysRecord returns `RECORD_AND_SAMPLE` | ||||||||
|
|
||||||||
| **Required parameters:** | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following formatting from the rest of this document.
Suggested change
|
||||||||
|
|
||||||||
| * `root(Sampler)` - A delegate sampler called to determine whether a span | ||||||||
| is sampled or dropped | ||||||||
|
|
||||||||
| ### Sampling Requirements | ||||||||
|
|
||||||||
| **Status**: [Development](../document-status.md) | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#nit: I think we should put this above the
CompositeSamplerto avoid it being confused as a Built-In ComposableSampler.Sampling SIG: does it make sense to add a Built-In ComposableSampler variation of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @majanjua-amzn
(also we need a CHANGELOG entry)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to the suggested ordering from @jack-berg