From a2950b0c57a5d8471ea64c9eb611d02c61af5f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Wed, 30 Oct 2024 09:06:02 +0100 Subject: [PATCH] Fix IDE0060 --- .../Implementation/RequestContextHelperTests.cs | 2 +- .../Implementation/TestsHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/RequestContextHelperTests.cs b/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/RequestContextHelperTests.cs index 7e465a4694..d49ac7601c 100644 --- a/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/RequestContextHelperTests.cs +++ b/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/RequestContextHelperTests.cs @@ -37,7 +37,7 @@ public void AddAttributes_ParametersCollectionSizeReachesLimit_TraceDataNotInjec var context = new TestRequestContext(originalRequest, request); - var addAttributes = TestsHelper.CreateAddAttributesAction(serviceType, context); + var addAttributes = TestsHelper.CreateAddAttributesAction(serviceType); addAttributes?.Invoke(context, AWSMessagingUtils.InjectIntoDictionary(CreatePropagationContext())); Assert.Equal(30, parameters.Count); diff --git a/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/TestsHelper.cs b/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/TestsHelper.cs index adedf84b21..519b677628 100644 --- a/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/TestsHelper.cs +++ b/test/OpenTelemetry.Instrumentation.AWS.Tests/Implementation/TestsHelper.cs @@ -18,7 +18,7 @@ internal static class TestsHelper /// /// This is meant to mimic these logic in . /// - internal static Action>? CreateAddAttributesAction(string serviceType, IRequestContext context) + internal static Action>? CreateAddAttributesAction(string serviceType) { return serviceType switch {