Skip to main content

Documentation Index

Fetch the complete documentation index at: https://ancplua.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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