opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Remote sampling?

Open naseemkullah opened this issue 5 years ago • 6 comments

  • [ ] This only affects the JavaScript OpenTelemetry library
  • [x] This may affect other libraries, but I would like to get opinions here first

I want to have the sampling strategy configured at the Jaeger Collector as per https://www.jaegertracing.io/docs/1.16/sampling/#client-sampling-configuration ... this requires the client to have a "remote sampling" strategy. Is this possible today?

naseemkullah avatar Jan 14 '20 00:01 naseemkullah

no, this is a unique feature of Jaeger clients.

naseemkullah avatar Jan 14 '20 03:01 naseemkullah

Will this be implemented? Support for jaeger remote sampling has been added to the opentelemetry specification

See OTEL_TRACES_SAMPLER =jaeger_remote in the specification

bforbis avatar Oct 29 '21 20:10 bforbis

Interesting. The SDK spec doesn't list the jaeger remote sampler as a built-in sampler. Maybe this is a spec oversight? https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#built-in-samplers

dyladan avatar Oct 29 '21 20:10 dyladan

Can this issue be re-opened? I would like to have this functionality available.

bforbis avatar Oct 30 '21 16:10 bforbis

Yes this issue can be reopened but it should likely be clarified in the spec if the jaeger remote sampler is a spec required component. If not, it would likely need to be implemented in the contrib repo.

dyladan avatar Nov 01 '21 13:11 dyladan

The spec is now updated and mentions Jaeger remote sampler. https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#jaegerremotesampler

MaheshGPai avatar Sep 03 '22 08:09 MaheshGPai

Are there plans to implement jaeger remote sampling feature for JS ?

MUI-Pop avatar Feb 13 '23 15:02 MUI-Pop

Are there any plans to implement this?

shamil avatar Nov 21 '23 07:11 shamil

The spec has now been clarified that the remote sampler is supposed to be included with an SDK implementation.

I opened a new issue that should be a bit clearer what needs to be done to fully implement the feature, and where in the repo to put it, see #4534. I'm closing this issue in favor of the new one. I marked the new one as up-for-grabs in case anyone stumbling across this issue wants to work on it.

pichlermarc avatar Mar 08 '24 16:03 pichlermarc