From 38e058f92caaa3337a62db173cb69f82fce59ae5 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Wed, 4 Nov 2020 12:17:36 -0800 Subject: [PATCH] Removed AddOpenTelemetryTracing method which takes Func returning TracerProvider (#1456) Co-authored-by: Eddy Nakamura --- src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md | 3 +++ .../OpenTelemetryServicesExtensions.cs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md b/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md index 6176c561cb2..5e220f3c80e 100644 --- a/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md +++ b/src/OpenTelemetry.Extensions.Hosting/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +* Removed AddOpenTelemetryTracing method which takes Func returning + TracerProvider. + ## 0.7.0-beta.1 Released 2020-Oct-16 diff --git a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs index 9921f1ae882..d6414cd3d43 100644 --- a/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs +++ b/src/OpenTelemetry.Extensions.Hosting/OpenTelemetryServicesExtensions.cs @@ -86,7 +86,7 @@ public static IServiceCollection AddOpenTelemetryTracing(this IServiceCollection /// The to add services to. /// A delegate that provides the tracer provider to be registered. /// The so that additional calls can be chained. - public static IServiceCollection AddOpenTelemetryTracing(this IServiceCollection services, Func createTracerProvider) + private static IServiceCollection AddOpenTelemetryTracing(this IServiceCollection services, Func createTracerProvider) { if (services is null) { @@ -117,7 +117,7 @@ public static IServiceCollection AddOpenTelemetryTracing(this IServiceCollection /// The to add services to. /// A delegate that provides the tracer provider to be registered. /// The so that additional calls can be chained. - public static IServiceCollection AddOpenTelemetryTracing(this IServiceCollection services, Func createTracerProvider) + private static IServiceCollection AddOpenTelemetryTracing(this IServiceCollection services, Func createTracerProvider) { if (services is null) {