From 74d8bb9f4b5d72dcca7316c10d02bd12a512a7e4 Mon Sep 17 00:00:00 2001 From: Yang Song Date: Fri, 16 Dec 2022 14:24:46 -0500 Subject: [PATCH] Explicitly enable compression for native metric APIs Fixes #6944 --- exporter/datadogexporter/internal/clientutil/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exporter/datadogexporter/internal/clientutil/api.go b/exporter/datadogexporter/internal/clientutil/api.go index fef3d7359e70..42767a67e643 100644 --- a/exporter/datadogexporter/internal/clientutil/api.go +++ b/exporter/datadogexporter/internal/clientutil/api.go @@ -31,6 +31,7 @@ func CreateAPIClient(buildInfo component.BuildInfo, endpoint string, settings ex configuration := datadog.NewConfiguration() configuration.UserAgent = UserAgent(buildInfo) configuration.HTTPClient = NewHTTPClient(settings, insecureSkipVerify) + configuration.Compress = true if endpoint != "" { configuration.Servers = datadog.ServerConfigurations{ {