Skip to content

Sampling strategies are not applied to the image 'jaeger:all-in-one' #2696

Answered by yurishkuro
nfsp3k asked this question in Q&A
Discussion options

You must be logged in to vote

Did you configure all-in-one to use remote sampler? By default it uses always-on sampler.

func initTracer(metricsFactory metrics.Factory, logger *zap.Logger) io.Closer {
traceCfg := &jaegerClientConfig.Configuration{
ServiceName: "jaeger-query",
Sampler: &jaegerClientConfig.SamplerConfig{
Type: "const",
Param: 1.0,
},
RPCMetrics: true,
}
traceCfg, err := traceCfg.FromEnv()

You need to set JAEGER_SAMPLER_TYPE=remote and JAEGER_SAMPLER_PARAM={default probability} env vars.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nfsp3k
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yurishkuro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2696 on December 18, 2020 09:39.