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: Al0090UncompressedExportAnalyzer.cs

Description

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

Bad Code

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

Good Code

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

dotnet_diagnostic.AL0090.severity = warning