Skip to content

[Exporter.Prometheus.AspNetCore] Support GZip compression #7213

@martincostello

Description

@martincostello

From Scrape protocol content negotiation:

The Accept-Encoding header SHOULD be set to:

  • gzip if compression is enabled
  • identity if compression is disabled

Given the changes in #7055, it should be relatively trivial to add support for compression with GZip to PrometheusExporterMiddleware.

Depends on #7209.

Note

Out-of-scope: Adding compression support to OpenTelemetry.Exporter.Prometheus.HttpListener.

Metadata

Metadata

Labels

pkg:OpenTelemetry.Exporter.Prometheus.AspNetCoreIssues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet packagespec-complianceIssues related to compliance with the OpenTelemetry Specification

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions