> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0091 - Batch export disabled

> Use batch processors in production for better performance

Source: [Al0091BatchExportDisabledAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/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

```csharp theme={null}
t.AddOtlpExporter(o => {
    o.ExportProcessorType = ExportProcessorType.Simple;
});
```

## Good Code

```csharp theme={null}
t.AddOtlpExporter(o => {
    o.ExportProcessorType = ExportProcessorType.Batch;
});
```

## Properties

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

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0091.severity = warning
```
