Description
OTLP export over HTTP should enable gzip compression to reduce bandwidth usage and improve performance.Bad Code
Good Code
Properties
- Category: OpenTelemetry
- Severity: Warning
- Enabled by default: True
- Code fix available: False
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Enable gzip compression for HTTP OTLP export
t.AddOtlpExporter(o => {
o.Protocol = OtlpExportProtocol.HttpProtobuf;
// No compression configured
});
t.AddOtlpExporter(o => {
o.Protocol = OtlpExportProtocol.HttpProtobuf;
o.HttpClientFactory = () => new HttpClient(new GzipHandler());
});
dotnet_diagnostic.AL0090.severity = warning
Was this page helpful?
