<PackageReference Include="Serilog.Sinks.OpenTelemetry" Version="4.1.1-dev-00356" />

Serilog.Sinks.OpenTelemetry.Exporters.InstrumentationSuppressingExporter

Uses a callback to suppress instrumentation while telemetry is being exported by the wrapped exporter.
namespace Serilog.Sinks.OpenTelemetry.Exporters { internal sealed class InstrumentationSuppressingExporter : IExporter, IDisposable { public InstrumentationSuppressingExporter(IExporter exporter, Func<IDisposable> onBeginSuppressInstrumentation); public void Export(ExportLogsServiceRequest request); public Task ExportAsync(ExportLogsServiceRequest request); public void Export(ExportTraceServiceRequest request); public Task ExportAsync(ExportTraceServiceRequest request); public void Dispose(); } }