From 45b13be4a75a0d1b991e75f2a3eef3b308a48db8 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 20 Nov 2023 14:29:04 +0100 Subject: [PATCH] chore: add http telemetry support --- Server/Program.cs | 7 ++++++- Server/Server.csproj | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/Program.cs b/Server/Program.cs index 28b4052..20d2db2 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -46,8 +46,13 @@ builder.Services.AddOpenTelemetry() tracing.SetSampler(new AlwaysOnSampler()); tracing.AddMassTransitInstrumentation(); tracing.AddEntityFrameworkCoreInstrumentation(options => options.SetDbStatementForText = true); + tracing.AddHttpClientInstrumentation(); }) - .WithMetrics(metrics => { metrics.AddRuntimeInstrumentation(); }); + .WithMetrics(metrics => + { + metrics.AddRuntimeInstrumentation(); + metrics.AddHttpClientInstrumentation(); + }); builder.Logging.AddOpenTelemetry(logging => { diff --git a/Server/Server.csproj b/Server/Server.csproj index df61ab8..1ef7a0a 100644 --- a/Server/Server.csproj +++ b/Server/Server.csproj @@ -94,6 +94,7 @@ +