diff --git a/src/Middleware/Connector.php b/src/Middleware/Connector.php index 9ab06c5..8ebf231 100644 --- a/src/Middleware/Connector.php +++ b/src/Middleware/Connector.php @@ -129,9 +129,10 @@ private function getRequestHeaders() : array { // Default Headers Set $headers = [ - 'Content-Type' => 'application/x-ndjson', - 'User-Agent' => sprintf('elastic-apm-php/%s', Agent::VERSION), - 'Accept' => 'application/json', + 'Content-Type' => 'application/x-ndjson', + 'Content-Encoding' => 'gzip', + 'User-Agent' => sprintf('elasticapm-php/%s', Agent::VERSION), + 'Accept' => 'application/json', ]; // Add Secret Token to Header