Skip to content
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

OTLP examples are inconsistent in the use of endpoint url #2542

Open
ramgdev opened this issue Jan 23, 2025 · 1 comment
Open

OTLP examples are inconsistent in the use of endpoint url #2542

ramgdev opened this issue Jan 23, 2025 · 1 comment

Comments

@ramgdev
Copy link
Contributor

ramgdev commented Jan 23, 2025

Currently, the examples in opentelemetry-otlp project are using two different ways to specify the endpoint URL. basic-otlp is setting the endpoint url without the signal specific path http://localhost:4317 and still works. However, the example in basic-otlp-http is setting the endpoint with the signal specific path http://localhost:4318/v1/traces. If the signal specific path /v1/traces is removed, the example fails to run whereas basic-otlp works either way.

This brings up the question of whether the SDK should default signal specific path when there is no path specified in the endpoint URL. Given the spec already refers to default path for each signal, it would serve SDK consumers not to bother about them when setting the endpoint URL when configuring the respective providers/exporters. In other words, the example in basic-otlp-http should work the same way as basic-otlp currently works as of version 0.27.0.

@cijothomas
Copy link
Member

@lalitb will you be able to check this one?

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

2 participants