<PackageReference Include="OpenTelemetry" Version="1.13.1" />

OpenTelemetry.Trace.TracerProviderExtensions

public static class TracerProviderExtensions
Contains extension methods for the TracerProvider class.
public static TracerProvider AddProcessor(this TracerProvider provider, BaseProcessor<Activity> processor)

Add a processor to the provider.

public static bool ForceFlush(this TracerProvider provider, int timeoutMilliseconds = -1)

Flushes all the processors registered under TracerProviderSdk, blocks the current thread until flush completed, shutdown signaled or timed out.

public static bool Shutdown(this TracerProvider provider, int timeoutMilliseconds = -1)

Attempts to shutdown the TracerProviderSdk, blocks the current thread until shutdown completed or timed out.