Exception is thrown on non-standard IOC container due to use of Concrete classes. #5537
Labels
bug
Something isn't working
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol
Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
OpenTelemetry.Exporter 1.8
net8.0
Upgrading from 1.7 to 1.8 without any changes to our codebase.
This code is throwing exception:
My guess is that as we are using a non-default ServiceProvider (IUnityContainer), we get a concrete class even though it is not registred in the service collection.
Is it possible to refactor to use interfaces instead of concrete classes?
This is the only instance in all of the codebase we are using (asp.net mvc+ blazor, redis cache, Masstransit, ..) where this is a problem.
The text was updated successfully, but these errors were encountered: