Repository navigation
Exporting traces does not work with OTEL_EXPORTER_OTLP_ENDPOINT but it does work with OTEL_EXPORTER_TRACES_ENDPOINT env variables.
#4961
Replies: 2 comments 1 reply
|
Hi, does it work for you when you specify the scheme? e.g. |
|
The likely issue is the endpoint value. For OTLP/gRPC, try specifying the scheme explicitly: OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317
OTEL_EXPORTER_OTLP_PROTOCOL=grpcinstead of: OTEL_EXPORTER_OTLP_ENDPOINT=127.0.0.1:4317The OpenTelemetry OTLP exporter specification supports OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
OTEL_EXPORTER_OTLP_TRACES_PROTOCOLoverride the common configuration for traces. So both approaches are valid: # Common OTLP configuration
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317
OTEL_EXPORTER_OTLP_PROTOCOL=grpcor: # Trace-specific configuration
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://127.0.0.1:4317
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpcThe trace-specific configuration takes precedence when it is set. Since you are exporting directly to Jaeger over OTLP/gRPC, also make sure Jaeger's OTLP receiver is actually listening on port So the environment variables are still supported; I would first try adding the |



Uh oh!
There was an error while loading. Please reload this page.
I was trying to instrument my fastapi application for collecting traces.
I had environment variables with the below values for exporting traces and I was exporting them to the jaegar instance which was running in docker container.
With the above values my application was not able to find the traces' backend.
However, when I omitted the above variables and then tried to set below env variables, my application was successfully exporting traces to the jaegar instance.
Below are the environment variables with which my setup is working.
Are the environment variables
OTEL_EXPORTER_OTLP_ENDPOINTandOTEL_EXPORTER_OTLP_PROTOCOLremoved from the latest version in the sdk?Because, if they are then it should clearly be reflected in the documentation.
All reactions