Remove dependencies on unstable OpenTelemetry packages in Aspire Components #2819
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
Milestone
As our plan is to stabilize .NET Aspire for
v8.0.0
we need to remove unstable dependencies.We have the following dependencies on unstable OpenTelemetry instrumentation packages in our Aspire Components:
None of these packages has a plan to ship a stable/GA version by the time we ship
v8.0.0
of .NET Aspire. We need to formulate a plan for how to handle these dependencies.OpenTelemetry.Instrumentation.EventCounters
Used by all 5 EntityFramework components and Aspire.Microsoft.Data.SqlClient to turn the existing EventCounters into OTel metrics / Meters.
I think the following 2 options are possible here:
Meter
APIs.OpenTelemetry.Instrumentation.EventCounters
into our Aspire Components for now until either:a. The EventCounters library ships stable.
b. The underlying libraries get native metrics using the
Meter
APIs.OpenTelemetry.Instrumentation.SqlClient
This is used by
Aspire.Microsoft.Data.SqlClient
(and after #2814Aspire.Microsoft.EntityFrameworkCore.SqlServer
) to produce traces / Activities for the SqlClient ADO.NET provider.Tracing is more critical than Metrics, so I don't think it is a valid option to remove this instrumentation from the component. I think the only viable option here is to "vendor"/copy the instrumentation library code into the Aspire components.
OpenTelemetry.Instrumentation.StackExchangeRedis
This is used by the 3 Redis components to produce traces / Activities when communicating with a Redis server.
For the same reason above as SqlClient, I don't think it is a valid option to remove this instrumentation from the component. I think the only viable option here is to "vendor"/copy the instrumentation library code into the Aspire components.
cc @joperezr @DamianEdwards @AndriySvyryd @roji @mgravell
The text was updated successfully, but these errors were encountered: