Skip to content

Add alwaysRecord Sampler #4602

@blueswhisper

Description

@blueswhisper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this projectblocked:specblocked on open or unresolved spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions