-
Notifications
You must be signed in to change notification settings - Fork 749
Description
Description
We have configured our trace generator using GO SDK remote sampling configuration similar to way mentioned in https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/samplers/jaegerremote.
jaegerRemoteSampler := jaegerremote.New(
"your-service-name",
jaegerremote.WithSamplingServerURL("http://{sampling_service_host_name}:5778"),
jaegerremote.WithSamplingRefreshInterval(10time.Second),
jaegerremote.WithInitialSampler(trace.TraceIDRatioBased(0.5)),
)
tp := trace.NewTracerProvider(
trace.WithSampler(jaegerRemoteSampler),
...
)
otel.SetTracerProvider(tp)
After configuring the SDK using the above configuration,samplingstrategies.json file configuration is successfully fetched from Jaeger-collector
But when we tried generating the traces, the sampling_strategies.json file of collector is still not applied and did not show any effect on the sampling of traces.
we would like to know the reason for not applying the fetched sampling configuration, are we missing anything ? could you please help us?
We have also raised ticket on Jaeger, please check "jaegertracing/jaeger#3925" for more information, they concluded like, sampling information(sampler.params and sampler.type) should be visible in Jaeger UI to work remote sampling, currently with OTEL SDK we can not see sampling information(sampler.params and sampler.type) in Jaeger UI.
Environment
- OS: Linux Based OS
- Go Version: 1.18
- opentelemetry-go version:
Expected behavior
Remote Sampling should work as expected.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status