Skip to content

Commit

Permalink
[Instrumentation.AWSLambda] Updated AWSLambda ActivitySource Name (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
samimusallam authored Aug 16, 2022
1 parent a7ac682 commit ba45b7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ namespace OpenTelemetry.Contrib.Instrumentation.AWSLambda.Implementation
/// </summary>
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";
Expand Down

0 comments on commit ba45b7f

Please sign in to comment.