Update Sampler interface base on OTEP 0006-sampling#296
Update Sampler interface base on OTEP 0006-sampling#296SergeyKanzhelev merged 7 commits intoopen-telemetry:masterfrom
Conversation
|
|
||
| Returns the sampling Decision for a `Span` to be created. | ||
|
|
||
| **Required arguments:** |
There was a problem hiding this comment.
Would it make sense to generalize this, in light of #31? In Jaeger we recently extended the API to allow sampling decisions to be made later in the span life cycle
onCreateSpan(span: Span): SamplingDecision
onSetOperationName(span: Span, operationName: string): SamplingDecision
onSetTag(span: Span, key: string, value: any): SamplingDecision
There was a problem hiding this comment.
I think these are moments when the Sampler is called from the SDK perspective. I do agree that this is a nice to have config. Filed #307
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
| arguments collection. Description MUST be `NeverSampleSampler`. | ||
| These are the default samplers implemented in the OpenTelemetry SDK: | ||
|
|
||
| * ALWAYS_ON |
There was a problem hiding this comment.
IMO, this isn't a particularly clear name. Can we make it ALWAYS_RETAIN and the other be ALWAYS_DROP ?
There was a problem hiding this comment.
Please file an issue to not forget about this.
SergeyKanzhelev
left a comment
There was a problem hiding this comment.
please apply suggested changes
Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>
|
@yurishkuro please take another look. |
|
This change was discussed in OTEP and hasn't received any requests for change. It also satisfied the requirement on # of approvals and almost a day passed since the last approval. No semantics changes were made in 5 days. So looks OK to merge for me. Merging |
* Update Sampler interface base on OTEP 0006-sampling Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> * Fix comments from review Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Update Sampler interface base on OTEP 0006-sampling Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> * Fix comments from review Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com> * Update specification/sdk-tracing.md Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-authored-by: Joao Grassi <joao.grassi@dynatrace.com>
Fixes #87
Fixes #33