Skip to content

Conversation

@frussane
Copy link

@frussane frussane commented Sep 9, 2025

Correcting the endpoint on .ini file to have "v1/traces"

Correcting the endpoint on .ini file
@vercel
Copy link

vercel bot commented Sep 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
signoz-web Ready Ready Preview Comment Sep 9, 2025 2:37am

OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318/v1/traces
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTEL_EXPORTER_OTLP_ENDPOINT should not need v1/traces
https://opentelemetry.io/docs/languages/php/sdk/#configuration

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mine only worked on this endpoint. And found a few references online that said to use this endpoint. Maybe some bug?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Let us check and get back, reopening your PR for now

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey
I Verified with OpenTelemetry PHP SDK v1.9.0 and OTLP Exporter v1.3.2 on PHP 8.4.13.
The SDK correctly appends /v1/traces automatically - OTEL_EXPORTER_OTLP_ENDPOINT should be the base URL (e.g. http://localhost:4318) and must not include /v1/traces.
Older or pre-1.0 exporter versions may have required the explicit path, which likely caused the confusion.

Kindly check

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

Successfully merging this pull request may close these issues.

3 participants