[Bug]: Sampling strategies not working as expected #3925
Description
What happened?
Configured the Sampling strategies as per the Jaeger documentation: https://www.jaegertracing.io/docs/1.34/sampling/
Sampling strategy does not seem to affect even after configuring the strategy using .json file. I can also see in the collector logs that the input json file is read but the output is not obtained as expected.
Following is the configuration .json file used by us by default:
{
"service_strategies": [],
"default_strategy": {
"type": "probabilistic",
"param": 0.1
}
}
Even after providing the sampling configuration as above keeping the type as probabilistic and parameter as 0.1.
When 100 spans are generated all of those spans are seen on UI and no filtration of spans is done.
Tested with the parameter as 0, even then I could see all the spans are stored and seen on UI.
Steps to reproduce
- Select a Sampling strategy and Parameter[As above case Probablistic and 0.1]
- Configure the sampling_strategies.json file using the method selected.
- Check if the spans are sampled as per the strategy provided.
Expected behavior
Sampling has to be performed as per the input configuration file.
Relevant log output
Log that Samplingstrategies file is being read:
{"level":"info","ts":1663994011.7913685,"caller":"static/strategy_store.go:138","msg":"Loading sampling strategies","filename":"/etc/sampling/samplingstrategies.json"}
Jaeger backend version
v1.34.0
Storage backend
Issue is seen with both Cassandra and Elastic search as backends.
Operating system
Ubuntu 18.04.6
Activity