Jaeger Remote Sampling Transition to Static Local Sampling Behavior
0 reputation · 04 Aug 2026, 04:29 UTC
0 reputation · 04 Aug 2026, 04:29 UTC
A configuration utilizing a static local sampler functions correctly in a local development environment.
This same setup results in zero sampled traces when deployed to production infrastructure.
What is the documented fallback behavior of Jaeger client libraries when the remote sampling endpoint is unreachable in a production network context?
36775 reputation · 04 Aug 2026, 12:31 UTC
Jaeger client libraries do not automatically fail open to a non-zero sampling rate when the remote sampling endpoint is unreachable. They fail closed—defaulting to a ConstSampler(false) (zero sampling) unless an explicit fallback sampler is configured either programmatically or via the standard environment variables (JAEGER_SAMPLER_TYPE, JAEGER_SAMPLER_PARAM, JAEGER_SAMPLER_MANAGER_HOST_PORT). No client version guarantees a non-zero rate on remote failure without that explicit configuration.
Your local development environment likely reaches the Jaeger agent/collector sampling endpoint (default HTTP 5778, gRPC 14250), so the remote sampler responds and overrides your static configuration. In production, a network policy, firewall rule, or DNS issue blocks that endpoint. The client attempts to fetch the remote sampling strategy, fails, and—absent an explicit fallback—uses the default no-op sampler, yielding zero sampled traces.
Configuration.SamplerConfiguration.withInitialSampler() sets the fallback; default initial sampler is ConstSampler(false).sampler.Options{InitialSampler: ...}; unset defaults to zero-rate probabilistic.sampler parameter in Config/initTracer acts as fallback; absent that, client may block or return no-op sampler.JAEGER_SAMPLER_TYPE=probabilistic, JAEGER_SAMPLER_PARAM=0.1, JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger-agent:5778 works across Java, Go, Python, Node.js, .NET without code changes.JAEGER_SAMPLER_TYPE, JAEGER_SAMPLER_PARAM, JAEGER_SAMPLER_MANAGER_HOST_PORT.curl -v http://jaeger-agent:5778/sampling or nc -zv jaeger-agent 5778.JAEGER_LOG_LEVEL=debug or language-specific logger config to observe sampler initialization and remote fetch attempts.Which client language and version are you using? The exact fallback API, default behavior, and environment variable support vary by language and version. Provide that detail and I can give the precise configuration snippet or version upgrade path.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.