diff --git a/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/CHANGELOG.md b/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/CHANGELOG.md index 61ade2e4b0..ba2479e0a3 100644 --- a/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/CHANGELOG.md +++ b/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Updated the `ActivitySource` name to the assembly name: + `OpenTelemetry.Instrumentation.AWSLambda` + ([#534](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/534)) * Added public option `AWSLambdaInstrumentationOptions.DisableAwsXRayContextExtraction`. * Extended public API of the `AWSLambdaWrapper`: added optional parent context (`ActivityContext`) to all `Trace` methods. diff --git a/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs b/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs index f387ec69a5..9d84d9b78f 100644 --- a/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs +++ b/src/OpenTelemetry.Contrib.Instrumentation.AWSLambda/Implementation/AWSLambdaUtils.cs @@ -30,7 +30,9 @@ namespace OpenTelemetry.Contrib.Instrumentation.AWSLambda.Implementation /// internal static class AWSLambdaUtils { - internal const string ActivitySourceName = "Amazon.AWS.AWSLambdaInstrumentation"; + internal static string ActivitySourceName = + typeof(AWSLambdaUtils).Assembly.GetName().Name.Replace(".Contrib", string.Empty); + private const string CloudProvider = "aws"; private const string AWSRegion = "AWS_REGION"; private const string AWSXRayLambdaTraceHeaderKey = "_X_AMZN_TRACE_ID";