The official OpenTelemetry .NET package renamed AspNetCoreInstrumentationOptions
to AspNetCoreTraceInstrumentationOptions
#374
Labels
status: oncall
Flagged for awareness from Honeycomb Telemetry Oncall
type: bug
Something isn't working
Versions
Honeycomb.OpenTelemetry.Instrumentation.AspNetCore
andHoneycomb.OpenTelemetry.CommonInstrumentations
version0.29.0-beta
,Honeycomb.OpenTelemetry
version1.5.0
Steps to reproduce
Install dependencies:
Honeycomb.OpenTelemetry.Instrumentation.AspNetCore@0.29.0-beta
,Honeycomb.OpenTelemetry.CommonInstrumentations@0.29.0-beta
, andHoneycomb.OpenTelemetry@1.5.0
OpenTelemetry.Api.*
andOpenTelemetry.Instrumentation.*
versions1.7.x
Instrument an ASP.NET 8 application in startup:
Attempt to start application. It will fail at runtime with this error:
Additional context
After picking apart what
.AddCommonInstrumentations()
sets up, I concluded this error was a bit misleading and the core problem is thatAspNetCoreInstrumentationOptions
has been renamed toAspNetCoreTraceInstrumentationOptions
as part of open-telemetry/opentelemetry-dotnet#5108, which has been released in1.7.0
of the OpenTelemetry .NET distro packages.I have an example of where this happens in a repo I was building to do a demo: https://github.com/ChrisDusyk/ObservabilityDemo/blob/main/ObservabilityDemo.Server/Program.cs
The text was updated successfully, but these errors were encountered: