Skip to content

bug(config): _map_compression does not support deflate for HTTP exporters #5059

@MikeGoldsmith

Description

@MikeGoldsmith

The _map_compression helper in the declarative config layer only maps gzip and none, but the HTTP OTLP exporter's Compression enum also supports Deflate. Passing compression: deflate in a config file will raise a ConfigurationError even though the HTTP exporter supports it.

This affects all provider configs that use HTTP OTLP exporters:

Note: gRPC does not support deflate, so the fix needs to be HTTP-specific — either by checking whether Deflate exists on the passed enum, or by splitting _map_compression into HTTP and gRPC variants.

Raised in: #4990 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    configIssues and PRs related to implementing Declarative Config

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions