In Asp.Net Core Can't export traces from OpenTelemetry exporter to elastic apm
In Asp.Net Core Can't export traces from OpenTelemetry exporter to elastic apm: After some search, reinstall and debug I found my fault.
After some search, reinstall and debug I found my fault. I Downloaded AspNetCore sample from OpenTelemetry .net samples and I found that I should add next line in my code: AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
Context: Recently, I found OpenTelemetry, and I like to use it in my application. First, I created a new Asp.Net Core 5 web API and exported traces on the console. After that, I tried OpenTelemetry.Exporter.OpenTelemetryProtocol for export traces to Elastic APM, but I couldn't see log or traces at elastic. In 3rd step, I used Elastic.Apm.NetCoreAll, and I successfully sent traces to APM. So I think my Elastic APM configurations are correct, but some configurations at asp are wrong. Ca
Matched source
Source: Source: https://stackoverflow.com/questions/71222918/in-asp-net-core-cant-export-traces-from-opentelemetry-exporter-to-elastic-apm Original query: "In Asp.Net Core Can't export traces from OpenTelemetry exporter to elastic apm" Key terms: core, elastic, export, exporter, opentelemetry, traces
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.