From 74155133edb60cbeae9d868f549f17816d8dd419 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Fri, 24 Feb 2023 21:40:50 +0100 Subject: [PATCH] Removed extra formatting --- .../Trace/Builder/TracerProviderBuilderBase.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs index 0ea194e105c..a1edc48d960 100644 --- a/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs +++ b/src/OpenTelemetry/Trace/Builder/TracerProviderBuilderBase.cs @@ -41,8 +41,7 @@ public TracerProviderBuilderBase() .AddOpenTelemetrySharedProviderBuilderServices() .AddOpenTelemetryTracerProviderBuilderServices() .TryAddSingleton( - sp => throw new NotSupportedException( - "Self-contained TracerProvider cannot be accessed using the application IServiceProvider call Build instead.")); + sp => throw new NotSupportedException("Self-contained TracerProvider cannot be accessed using the application IServiceProvider call Build instead.")); services.ConfigureOpenTelemetryTracerProvider((sp, builder) => this.services = null); @@ -70,8 +69,7 @@ internal TracerProviderBuilderBase(IServiceCollection services) TracerProvider? ITracerProviderBuilder.Provider => null; /// - public override TracerProviderBuilder AddInstrumentation( - Func instrumentationFactory) + public override TracerProviderBuilder AddInstrumentation(Func instrumentationFactory) { Guard.ThrowIfNull(instrumentationFactory); @@ -114,8 +112,7 @@ TracerProviderBuilder ITracerProviderBuilder.ConfigureServices(Action this.ConfigureServicesInternal(configure); /// - TracerProviderBuilder IDeferredTracerProviderBuilder.Configure( - Action configure) + TracerProviderBuilder IDeferredTracerProviderBuilder.Configure(Action configure) => this.ConfigureBuilderInternal(configure); internal TracerProvider InvokeBuild() @@ -157,8 +154,7 @@ protected TracerProvider Build() { if (!this.allowBuild) { - throw new NotSupportedException( - "A TracerProviderBuilder bound to external service cannot be built directly. Access the TracerProvider using the application IServiceProvider instead."); + throw new NotSupportedException("A TracerProviderBuilder bound to external service cannot be built directly. Access the TracerProvider using the application IServiceProvider instead."); } var services = this.services;