Lifetime guidance for MeterProvider and TracerProvider (#2850)

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
This commit is contained in:
Alan West 2022-02-02 20:50:21 -08:00 committed by GitHub
parent d3afacc293
commit aca7efc0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 5 deletions

View File

@ -55,19 +55,26 @@ namespace OpenTelemetry
}
/// <summary>
/// Creates MeterProviderBuilder which should be used to build MeterProvider.
/// Creates a <see cref="MeterProviderBuilder"/> which is used to build
/// a <see cref="MeterProvider"/>. In a typical application, a single
/// <see cref="MeterProvider"/> is created at application startup and disposed
/// at application shutdown. It is important to ensure that the provider is not
/// disposed too early.
/// </summary>
/// <returns>MeterProviderBuilder instance, which should be used to build MeterProvider.</returns>
/// <returns><see cref="MeterProviderBuilder"/> instance, which is used to build a <see cref="MeterProvider"/>.</returns>
public static MeterProviderBuilder CreateMeterProviderBuilder()
{
return new MeterProviderBuilderSdk();
}
/// <summary>
/// Creates TracerProviderBuilder which should be used to build
/// TracerProvider.
/// Creates a <see cref="TracerProviderBuilder"/> which is used to build
/// a <see cref="TracerProvider"/>. In a typical application, a single
/// <see cref="TracerProvider"/> is created at application startup and disposed
/// at application shutdown. It is important to ensure that the provider is not
/// disposed too early.
/// </summary>
/// <returns>TracerProviderBuilder instance, which should be used to build TracerProvider.</returns>
/// <returns><see cref="TracerProviderBuilder"/> instance, which is used to build a <see cref="TracerProvider"/>.</returns>
public static TracerProviderBuilder CreateTracerProviderBuilder()
{
return new TracerProviderBuilderSdk();