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

OpenTelemetry.SuppressInstrumentationScope

Contains methods managing instrumentation of internal operations.
public static IDisposable Begin(bool value = true)

Begins a new scope in which instrumentation is suppressed (disabled).

public static int Enter()

Enters suppression mode. If suppression mode is enabled (state has a negative depth), do nothing. If suppression mode is not enabled (state is null), enter reference-counting suppression mode. If suppression mode is enabled (state has a positive depth), increment the ref count.

public void Dispose()