From d8ec6e0dd4d0e081cc89ee86f312c7d303da2fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Mon, 13 Mar 2023 19:33:03 +0100 Subject: [PATCH] [Instrumentation.AWSLambda] Remove AddAWSLambdaConfigurations with default parameter (#943) --- .../.publicApi/netstandard2.0/PublicAPI.Unshipped.txt | 3 ++- .../CHANGELOG.md | 4 ++++ .../TracerProviderBuilderExtensions.cs | 10 +++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/OpenTelemetry.Instrumentation.AWSLambda/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Instrumentation.AWSLambda/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt index 78ca482d91..04f3cd5b24 100644 --- a/src/OpenTelemetry.Instrumentation.AWSLambda/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt +++ b/src/OpenTelemetry.Instrumentation.AWSLambda/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt @@ -8,4 +8,5 @@ static OpenTelemetry.Instrumentation.AWSLambda.AWSLambdaWrapper.Trace(OpenTelemetry.Trace.TracerProvider tracerProvider, System.Action lambdaHandler, TInput input, Amazon.Lambda.Core.ILambdaContext context, System.Diagnostics.ActivityContext parentContext = default(System.Diagnostics.ActivityContext)) -> void static OpenTelemetry.Instrumentation.AWSLambda.AWSLambdaWrapper.TraceAsync(OpenTelemetry.Trace.TracerProvider tracerProvider, System.Func> lambdaHandler, TInput input, Amazon.Lambda.Core.ILambdaContext context, System.Diagnostics.ActivityContext parentContext = default(System.Diagnostics.ActivityContext)) -> System.Threading.Tasks.Task static OpenTelemetry.Instrumentation.AWSLambda.AWSLambdaWrapper.TraceAsync(OpenTelemetry.Trace.TracerProvider tracerProvider, System.Func lambdaHandler, TInput input, Amazon.Lambda.Core.ILambdaContext context, System.Diagnostics.ActivityContext parentContext = default(System.Diagnostics.ActivityContext)) -> System.Threading.Tasks.Task -static OpenTelemetry.Instrumentation.AWSLambda.TracerProviderBuilderExtensions.AddAWSLambdaConfigurations(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configure = null) -> OpenTelemetry.Trace.TracerProviderBuilder +static OpenTelemetry.Instrumentation.AWSLambda.TracerProviderBuilderExtensions.AddAWSLambdaConfigurations(this OpenTelemetry.Trace.TracerProviderBuilder builder) -> OpenTelemetry.Trace.TracerProviderBuilder +static OpenTelemetry.Instrumentation.AWSLambda.TracerProviderBuilderExtensions.AddAWSLambdaConfigurations(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configure) -> OpenTelemetry.Trace.TracerProviderBuilder diff --git a/src/OpenTelemetry.Instrumentation.AWSLambda/CHANGELOG.md b/src/OpenTelemetry.Instrumentation.AWSLambda/CHANGELOG.md index 729760a2cf..42efbc8a16 100644 --- a/src/OpenTelemetry.Instrumentation.AWSLambda/CHANGELOG.md +++ b/src/OpenTelemetry.Instrumentation.AWSLambda/CHANGELOG.md @@ -4,9 +4,13 @@ * Add HTTP server span attributes for API Gateway triggers ([#626](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/626)) +* Removes `AddAWSLambdaConfigurations` method with default configure parameter. + ([#943](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/943)) ## 1.1.0-beta.2 +Released 2022-Sep-14 + Release PR: [#590](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/590) & [#639](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/639). diff --git a/src/OpenTelemetry.Instrumentation.AWSLambda/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.AWSLambda/TracerProviderBuilderExtensions.cs index e6c523bd31..e6eb7d7daa 100644 --- a/src/OpenTelemetry.Instrumentation.AWSLambda/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.AWSLambda/TracerProviderBuilderExtensions.cs @@ -27,6 +27,14 @@ namespace OpenTelemetry.Instrumentation.AWSLambda; /// public static class TracerProviderBuilderExtensions { + /// + /// Add AWS Lambda configurations. + /// + /// being configured. + /// The instance of to chain the calls. + public static TracerProviderBuilder AddAWSLambdaConfigurations(this TracerProviderBuilder builder) => + AddAWSLambdaConfigurations(builder, configure: null); + /// /// Add AWS Lambda configurations. /// @@ -35,7 +43,7 @@ public static class TracerProviderBuilderExtensions /// The instance of to chain the calls. public static TracerProviderBuilder AddAWSLambdaConfigurations( this TracerProviderBuilder builder, - Action configure = null) + Action configure) { Guard.ThrowIfNull(builder);