After switching from app insights to Aspire's opinionated OTEL defaults, x-forwarded-for no longer works #3006
Replies: 3 comments 6 replies
-
I think the place to file these issues is https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter. Have you tried updating the package version? I think there were some changes made to make ACA work better. |
Beta Was this translation helpful? Give feedback.
-
See #2047 |
Beta Was this translation helpful? Give feedback.
-
Reading the description in Azure/azure-sdk-for-net#42850, this is not really Aspire related - its about differences between the old dedicated ApplicationInsights SDK and the OTel Exporter. |
Beta Was this translation helpful? Give feedback.
-
After removing app insights telemetry and replacing it with Aspire's OOTB OTEL hookup (plus the azure log exporter) now every single request is "from" whatever ACA region the app is hosted in (in this case Des Moines, Iowa).
Is there some guidance on how to actually configure OTEL to use the X-Forwarded-For header and set the exported value in azure logs?
Beta Was this translation helpful? Give feedback.
All reactions