[API Proposal]: HttpClient Metrics Enchainment and Filtering #1766
Labels
comp:instrumentation.http
Things related to OpenTelemetry.Instrumentation.Http
enhancement
New feature or request
This is the proposal to add enrichment and filtering to HttpClient metrics in order to have the ability to enhance the metrics, currently, we have these features in Tracing but they are missing in Metrics.
Use cases
Enrichment
There are cases that it would be needed to enrich the current metrics, for example when users need to have HTTP route in the metrics,
services could have egress requests to an external HTTP server and having those metrics for each route would be essential.
The enrichment could happen on HttpResponseMessage because it includes also the request as a property.
Filtering
It could be possible that you would need to filter some requests, I don't see it as a necessary feature but a nice to have.
API
HttpClientMetricsInstrumentationOptions
MeterProviderBuilderExtensions
PR: open-telemetry/opentelemetry-dotnet#4374
The text was updated successfully, but these errors were encountered: