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}",