[APM] Add elastic-api-version header to Kibana API calls (#166602)

Versioned APIs in Kibana require an `elastic-api-version` header.

This PR adds the required header to Synthtrace.
This commit is contained in:
Giorgos Bamparopoulos 2023-09-18 14:47:36 +03:00 committed by GitHub
parent 9e4614647a
commit 7d5bb9be50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,5 +69,6 @@ function kibanaHeaders() {
Accept: 'application/json',
'Content-Type': 'application/json',
'kbn-xsrf': 'kibana',
'elastic-api-version': '2023-10-31',
};
}