How to export Telemetry to an external OTLP endpoint #871
Unanswered
raultorrecilla
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am trying to configure eShop to export the open telemetry gathered natively to an external Collector that exposes both http and grpc endpoints.
In the launchSettings.json from the AppHost I commented out the
DOTNET_DASHBOARD_OTLP_ENDPOINT_URL
and addedOTEL_EXPORTER_OTLP_ENDPOINT
pointing to my local collector. I also have added theOTEL_EXPORTER_OTLP_HEADERS
as my local collector requires the Authorization header.I could not make it work. My local collector is alive and accepting data as I can reach it through curl or postman.
One interesting thing is that if I debug in AddOpenTelemetryExporters method in Extensions.cs and watch for both OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS, the first one is grabbing my configuration in the launchsettings.json but the second one is not. It is showing a header/key that starts with
x-otlp-api-key=7af0....
that I could not find in the code.Any hints how to setup this?
Beta Was this translation helpful? Give feedback.
All reactions