Skip to main content
Source: Al0091BatchExportDisabledAnalyzer.cs

Description

Simple (non-batch) export processors send telemetry synchronously on each span/metric, which degrades application performance. Use batch processors in production.

Bad Code

t.AddOtlpExporter(o => {
    o.ExportProcessorType = ExportProcessorType.Simple;
});

Good Code

t.AddOtlpExporter(o => {
    o.ExportProcessorType = ExportProcessorType.Batch;
});

Properties

  • Category: OpenTelemetry
  • Severity: Warning
  • Enabled by default: True
  • Code fix available: False

Configuration

dotnet_diagnostic.AL0091.severity = warning