From 938f89a877ee26bc9d300c07aaa3e669e7667712 Mon Sep 17 00:00:00 2001 From: "Tristan (HouseCat) Hyams" Date: Sun, 14 Apr 2024 17:33:14 -0500 Subject: [PATCH] Cleanup --- .../Extensions/ServiceCollectionExtensions.cs | 4 ++-- tests/RabbitMQ.Console.Tests/appsettings.json | 3 +-- tests/RabbitMQ.ConsumerDataflows.Tests/appsettings.json | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/HouseofCat.Utilities/Extensions/ServiceCollectionExtensions.cs b/src/HouseofCat.Utilities/Extensions/ServiceCollectionExtensions.cs index d16cbcd..6451724 100644 --- a/src/HouseofCat.Utilities/Extensions/ServiceCollectionExtensions.cs +++ b/src/HouseofCat.Utilities/Extensions/ServiceCollectionExtensions.cs @@ -62,10 +62,10 @@ public static void AddOpenTelemetryExporter( otlpOptions.Headers = string.Format(otlpHeaderFormat, otlpHeaderKey, otlpApiKey); }) #if DEBUG - .AddSource(sourceName) + .AddSource(otlpServiceName) .AddConsoleExporter()); #else - .AddSource(sourceName)); + .AddSource(otlpServiceName)); #endif } } diff --git a/tests/RabbitMQ.Console.Tests/appsettings.json b/tests/RabbitMQ.Console.Tests/appsettings.json index 59492b1..bb8887e 100644 --- a/tests/RabbitMQ.Console.Tests/appsettings.json +++ b/tests/RabbitMQ.Console.Tests/appsettings.json @@ -1,8 +1,7 @@ { "OpenTelemetry": { "Enabled": false, - "ServiceVersion": "v1.0.0", - "Environment": "production", + "Environment": "Dev", "EndpointUrl": "https://ingest.us.signoz.cloud:443", "HeaderFormat": "{0}={1}", "HeaderKey": "signoz-access-token", diff --git a/tests/RabbitMQ.ConsumerDataflows.Tests/appsettings.json b/tests/RabbitMQ.ConsumerDataflows.Tests/appsettings.json index 59de588..be926f8 100644 --- a/tests/RabbitMQ.ConsumerDataflows.Tests/appsettings.json +++ b/tests/RabbitMQ.ConsumerDataflows.Tests/appsettings.json @@ -1,7 +1,6 @@ { "OpenTelemetry": { "Enabled": true, - "ServiceVersion": "v1.0.0", "Environment": "Dev", "EndpointUrl": "https://ingest.us.signoz.cloud:443", "HeaderFormat": "{0}={1}",