Is your feature request related to a problem? Please describe.
Add Sampler.alwaysRecord() sampler return SamplingDecision.RECORD_ONLY decision to build real Span always. But leave the decision whether real export span data on span end to implement some error span force sample logic.
Most normal success span will just drop on span end. Only error status span and sampled span export to trace system for diagnostic. Error span has higher possiblity for user query.
Describe alternatives you've considered
Config sample rate to 100%, leave sample decision to opentelemetry-collector. May cause high pressure for opentelemetry-collector for high deploy density K8s Node.
Is your feature request related to a problem? Please describe.
Add
Sampler.alwaysRecord()sampler returnSamplingDecision.RECORD_ONLYdecision to build real Span always. But leave the decision whetherrealexport span data on span end to implement some error span force sample logic.Most normal success span will just drop on span end. Only error status span and sampled span export to trace system for diagnostic. Error span has higher possiblity for user query.
Describe alternatives you've considered
Config sample rate to 100%, leave sample decision to opentelemetry-collector. May cause high pressure for opentelemetry-collector for high deploy density K8s Node.