Honeycomb.OpenTelemetry.CommonInstrumentations uses incorrect packages #364
Labels
status: oncall
Flagged for awareness from Honeycomb Telemetry Oncall
type: bug
Something isn't working
Link to my full Program.cs:
https://github.com/Al4ric/ThingsFinder/blob/9412d18597b8aed00374843a1c745bab3d95f6ea/ThingsFinder/Program.cs
Branch: opentelemetry_init
Versions
0.27.1-beta
Steps to reproduce
Having this setup in Program.cs:
builder.Services.AddOpenTelemetry()
.ConfigureResource(resource => resource.AddService(serviceName))
.WithTracing(tracing => tracing
.AddHoneycomb(honeycombOptions)
.AddCommonInstrumentations()
It builds fine, but when trying to run it causes runtime error:
System.TypeLoadException
Could not load type 'OpenTelemetry.Trace.TracerProviderBuilderExtensions' from assembly 'OpenTelemetry.Instrumentation.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7bd6737fe5b67e3c'.
Additional context
When method AddCommonInstrumentations() is removed - application works fine. Weird thing is that there is no version 1.0.0 of OpenTelemetry.Instrumentation.Http. It was just "RC" versions and went from 1.0.0.rc-9.14 straight to 1.5.0-beta.1
The text was updated successfully, but these errors were encountered: