package
2.29.1+incompatible
Repository: https://github.com/luogreen/jaeger-client-go.git
Documentation: pkg.go.dev

# Functions

NewPrioritySampler creates a new PrioritySampler with given delegates.
NewTagMatchingSampler creates TagMatchingSampler with given tag key and matchers.
NewTagMatchingSamplerFromStrategy instantiates TagMatchingSampler from a strategy.
NewTagMatchingSamplerFromStrategyJSON creates the sampler from a JSON configuration of the following form: { "key": "tagKey", "matchers": [ { "value": "tagValue1", "firehose": true }, { "value": 42, "firehose": false } ], "values": { "tagValue1": { "firehose": true }, "tagValue2": { "firehose": false } } } Note that matchers can be specified either via "matchers" array (preferred), or via "values" dictionary (legacy, only supports string values).

# Structs

PrioritySampler contains a list of samplers that it interrogates in order.
TagMatcher describes which values TagMatchingSampler will match.
TagMatchingSampler samples traces that have spans with a particular tag value(s).
TagMatchingSamplingStrategy defines JSON format for TagMatchingSampler strategy.