Skip to content

How Remote sampling works without jaeger agent samping port 5778 #3132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Narenderbhcu opened this issue Jan 3, 2023 · 1 comment
Closed
Milestone

Comments

@Narenderbhcu
Copy link

Hi, as per below link, both Jaeger Agent and OpenTelemetry Collector implement the Jaeger sampling service endpoint.

[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(10*time.Second),
jaegerremote.WithInitialSampler(trace.TraceIDRatioBased(0.5)),
)

tp := trace.NewTracerProvider(
	trace.WithSampler(jaegerRemoteSampler),
	...
)
otel.SetTracerProvider(tp)

I am trying to use opentelemetry collector sampling port instead of jaeger agent port "http://{sampling_service_host_name}:5778", but I am unable to fetch sampling strategy information from the backend.
Tried with
jaegerremote.WithSamplingServerURL("http://{sampling_service_host_name}:4317"), and jaegerremote.WithSamplingServerURL("http://{sampling_service_host_name}:4318"),

but not working, please let me know how remote sampling work using opentelemetry collector sampling service endpoint, if share any reference if you have.

@MrAlias
Copy link
Contributor

MrAlias commented Jan 13, 2023

Please see #3147, it should help clarify Jaeger endpoints.

Closing as #3147 looks to have resolved this. Please reopen if this is not the case.

@MrAlias MrAlias closed this as completed Jan 13, 2023
@pellared pellared added this to the untracked milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants