> ## 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.

# AL0090 - Uncompressed OTLP export

> Enable gzip compression for HTTP OTLP export

Source: [Al0090UncompressedExportAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/Al0090UncompressedExportAnalyzer.cs)

## Description

OTLP export over HTTP should enable gzip compression to reduce bandwidth usage and improve performance.

## Bad Code

```csharp theme={null}
t.AddOtlpExporter(o => {
    o.Protocol = OtlpExportProtocol.HttpProtobuf;
    // No compression configured
});
```

## Good Code

```csharp theme={null}
t.AddOtlpExporter(o => {
    o.Protocol = OtlpExportProtocol.HttpProtobuf;
    o.HttpClientFactory = () => new HttpClient(new GzipHandler());
});
```

## Properties

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

## Configuration

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