From 12ef20cc2e0999c0ec04812ee6e6f30c5797c773 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Fri, 24 Feb 2023 20:08:30 +0100 Subject: [PATCH] Swapped params --- src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs | 2 +- .../Metrics/Builder/MeterProviderBuilderExtensions.cs | 4 ++-- .../Trace/Builder/TracerProviderBuilderExtensions.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs index 4648d330fee..aa82ded9269 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryBuilder.cs @@ -78,7 +78,7 @@ public OpenTelemetryBuilder ConfigureResource( /// The supplied for chaining /// calls. public OpenTelemetryBuilder ConfigureResource( - Action configure) + Action configure) { Guard.ThrowIfNull(configure); diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs index dbccb30016b..bae540aefb3 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderExtensions.cs @@ -310,13 +310,13 @@ public static MeterProviderBuilder ConfigureResource(this MeterProviderBuilder m /// . /// An action which modifies the provided in-place. /// The supplied for chaining. - public static MeterProviderBuilder ConfigureResource(this MeterProviderBuilder meterProviderBuilder, Action configure) + public static MeterProviderBuilder ConfigureResource(this MeterProviderBuilder meterProviderBuilder, Action configure) { meterProviderBuilder.ConfigureBuilder((sp, builder) => { if (builder is MeterProviderBuilderSdk meterProviderBuilderSdk) { - meterProviderBuilderSdk.ConfigureResource(resourceBuilder => configure(resourceBuilder, sp)); + meterProviderBuilderSdk.ConfigureResource(resourceBuilder => configure(sp, resourceBuilder)); } }); diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs index 2d1671ae5ac..931d1dee30e 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderExtensions.cs @@ -172,7 +172,7 @@ public static TracerProviderBuilder ConfigureResource(this TracerProviderBuilder /// . /// An action which modifies the provided in-place. /// Returns for chaining. - public static TracerProviderBuilder ConfigureResource(this TracerProviderBuilder tracerProviderBuilder, Action configure) + public static TracerProviderBuilder ConfigureResource(this TracerProviderBuilder tracerProviderBuilder, Action configure) { Guard.ThrowIfNull(configure); @@ -180,7 +180,7 @@ public static TracerProviderBuilder ConfigureResource(this TracerProviderBuilder { if (builder is TracerProviderBuilderSdk tracerProviderBuilderSdk) { - tracerProviderBuilderSdk.ConfigureResource(traceBuilder => configure(traceBuilder, sp)); + tracerProviderBuilderSdk.ConfigureResource(traceBuilder => configure(sp, traceBuilder)); } });