Skip to content

Commit

Permalink
Add enrichment & filter for http client metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
hayhay27 committed Sep 27, 2023
1 parent eb8a532 commit 7f4d2c8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.FilterHttpWe
OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.HttpClientInstrumentationOptions() -> void
OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.RecordException.get -> bool
OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.RecordException.set -> void
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Enrich.get -> OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricEnrichmentFunc
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Enrich.set -> void
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Filter.get -> System.Func<string, System.Net.Http.HttpRequestMessage, bool>
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Filter.set -> void
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricEnrichmentFunc
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricInstrumentationOptions() -> void
OpenTelemetry.Metrics.MeterProviderBuilderExtensions
OpenTelemetry.Trace.TracerProviderBuilderExtensions
static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder builder) -> OpenTelemetry.Metrics.MeterProviderBuilder
static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action<OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions> configure) -> OpenTelemetry.Metrics.MeterProviderBuilder
static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder
static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action<OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions> configureHttpClientInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder
static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action<OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions> configureHttpClientInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder
virtual OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricEnrichmentFunc.Invoke(string name, System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpResponseMessage response, ref System.Diagnostics.TagList tags) -> void
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.FilterHttpWe
OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.HttpClientInstrumentationOptions() -> void
OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.RecordException.get -> bool
OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions.RecordException.set -> void
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Enrich.get -> OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricEnrichmentFunc
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Enrich.set -> void
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Filter.get -> System.Func<string, System.Net.Http.HttpRequestMessage, bool>
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.Filter.set -> void
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricEnrichmentFunc
OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricInstrumentationOptions() -> void
OpenTelemetry.Metrics.MeterProviderBuilderExtensions
OpenTelemetry.Trace.TracerProviderBuilderExtensions
static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder builder) -> OpenTelemetry.Metrics.MeterProviderBuilder
static OpenTelemetry.Metrics.MeterProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action<OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions> configure) -> OpenTelemetry.Metrics.MeterProviderBuilder
static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder
static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, string name, System.Action<OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions> configureHttpClientInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder
static OpenTelemetry.Trace.TracerProviderBuilderExtensions.AddHttpClientInstrumentation(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action<OpenTelemetry.Instrumentation.Http.HttpClientInstrumentationOptions> configureHttpClientInstrumentationOptions) -> OpenTelemetry.Trace.TracerProviderBuilder
virtual OpenTelemetry.Instrumentation.Http.HttpClientMetricInstrumentationOptions.HttpClientMetricEnrichmentFunc.Invoke(string name, System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpResponseMessage response, ref System.Diagnostics.TagList tags) -> void
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ namespace OpenTelemetry.Metrics;
/// </summary>
public static class MeterProviderBuilderExtensions
{
#if NETFRAMEWORK
/// <summary>
/// Enables HttpClient instrumentation.
/// </summary>
Expand All @@ -37,7 +36,7 @@ public static MeterProviderBuilder AddHttpClientInstrumentation(this MeterProvid
{
return builder.AddHttpClientInstrumentationCore(configure: null);
}
#else
#if !NETFRAMEWORK
/// <summary>
/// Enables HttpClient instrumentation.
/// </summary>
Expand Down

0 comments on commit 7f4d2c8

Please sign in to comment.