From 7894126f97298606b30e15d526946b93407ec62e Mon Sep 17 00:00:00 2001 From: XShine555 Date: Fri, 29 May 2026 01:48:46 +0200 Subject: [PATCH] Changes --- Application/Application.csproj | 12 +++++----- Infrastructure/Infrastructure.csproj | 22 +++++++++---------- .../OpenTelemetryDependencyInjection.cs | 4 ++++ 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/Application/Application.csproj b/Application/Application.csproj index a6c1f02..c64c6c1 100644 --- a/Application/Application.csproj +++ b/Application/Application.csproj @@ -13,17 +13,17 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + diff --git a/Infrastructure/Infrastructure.csproj b/Infrastructure/Infrastructure.csproj index 8599ea5..379581c 100644 --- a/Infrastructure/Infrastructure.csproj +++ b/Infrastructure/Infrastructure.csproj @@ -14,22 +14,22 @@ - - - - - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - + + + - + - + diff --git a/Infrastructure/Observability/OpenTelemetryDependencyInjection.cs b/Infrastructure/Observability/OpenTelemetryDependencyInjection.cs index 0ac4f0c..0a2a861 100644 --- a/Infrastructure/Observability/OpenTelemetryDependencyInjection.cs +++ b/Infrastructure/Observability/OpenTelemetryDependencyInjection.cs @@ -3,6 +3,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Musify.Infrastructure.Configuration; using OpenTelemetry.Exporter; +using OpenTelemetry.Logs; using OpenTelemetry.Metrics; using OpenTelemetry.Resources; using OpenTelemetry.Trace; @@ -48,6 +49,9 @@ namespace Musify.Infrastructure.Observability .AddRuntimeInstrumentation() .AddProcessInstrumentation() .AddOtlpExporter() + ) + .WithLogging(logging => + logging.AddOtlpExporter() ); return serviceDescriptors;