-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed as not planned
Labels
enhancementNew feature or requestNew feature or requestneeds author feedbackWaiting for additional feedback from the authorWaiting for additional feedback from the authorstale
Description
Is your feature request related to a problem? Please describe.
100% sampling rate is not suitable for production environments because of high overhead,but non-100% sampling may lead to the loss of certain important spans,such as long-Duration span and erroneous span. I try to provide a custom io.opentelemetry.sdk.trace.SpanProcessor which will hold the spans associated with the same traceId util LocalRootSpan is ended. But I found that when isRecording(samplingDecision) is false, a io.opentelemetry.api.trace.PropagatedSpan is returned instead of io.opentelemetry.sdk.trace.SdkSpan which lost a lot of important information
Describe the solution you'd like
Two solution
- Return a
SDKSpaneven ifisRecording(samplingDecision)is false, by this, I can give a customio.opentelemetry.sdk.trace.SpanProcessorto implement Sampling for Long-Duration Span and Erroneous Span - if sampling for long-duration span、erroneous span or other span with specified feature is a common need,can the agent give a native support
Describe alternatives you've considered
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds author feedbackWaiting for additional feedback from the authorWaiting for additional feedback from the authorstale