-
Notifications
You must be signed in to change notification settings - Fork 2.8k
sampler.param shows defaultSamplingProbability instead of samplingRate #2171
Copy link
Copy link
Closed
Labels
area/samplingbughelp wantedFeatures that maintainers are willing to accept but do not have cycles to implementFeatures that maintainers are willing to accept but do not have cycles to implement
Description
Apply different probability per service
This issue may be related with Issue #696
Giving this strategy configuration:
{
"service_strategies": [
{
"service": "ServiceA",
"type": "probabilistic",
"param": 1.0
}
],
"default_strategy": {
"type": "probabilistic",
"param": 0.2,
"operation_strategies": [
{
"operation": "/health",
"type": "probabilistic",
"param": 0.0
}
]
}
}
The client correctly receives this configuration:
{
"strategyType": "PROBABILISTIC",
"probabilisticSampling": {
"samplingRate": 1
},
"operationSampling": {
"defaultSamplingProbability": 0.2,
"defaultLowerBoundTracesPerSecond": 0,
"perOperationStrategies": [
{
"operation": "/health",
"probabilisticSampling": {
"samplingRate": 0
}
}
],
"defaultUpperBoundTracesPerSecond": 0
}
}
However, the traces for ServiceA have this tag:
sampler.param: 0.2
sampler.type: "probabilistic"
The same happens if I change the strategy of serviceA to ratelimit. I don't know if it's just the tag that it's wrong or if it's using the default strategy instead of the correct one.
I'm using this docker image: jaegertracing/all-in-one:1.17.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/samplingbughelp wantedFeatures that maintainers are willing to accept but do not have cycles to implementFeatures that maintainers are willing to accept but do not have cycles to implement