From 5b9d10978456f4acf1cdf6ee3a32083373000ce6 Mon Sep 17 00:00:00 2001 From: Colleen McGinnis Date: Wed, 25 Sep 2024 09:40:04 -0500 Subject: [PATCH] Port #4280 to serverless (#4296) * update otel doc with note * fix copy-paste error --- ...m-agents-opentelemetry-opentelemetry-native-support.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/en/serverless/apm-agents/apm-agents-opentelemetry-opentelemetry-native-support.mdx b/docs/en/serverless/apm-agents/apm-agents-opentelemetry-opentelemetry-native-support.mdx index 09aef4a1cb..d009cfeb62 100644 --- a/docs/en/serverless/apm-agents/apm-agents-opentelemetry-opentelemetry-native-support.mdx +++ b/docs/en/serverless/apm-agents/apm-agents-opentelemetry-opentelemetry-native-support.mdx @@ -133,6 +133,13 @@ java -javaagent:/path/to/opentelemetry-javaagent-all.jar \ `OTEL_EXPORTER_OTLP_HEADERS` Authorization header that includes the Elastic APM API key: `"Authorization=ApiKey an_api_key"`. + Note the required space between `ApiKey` and `an_api_key`. + + For information on how to format an API key, refer to Secure communication with APM agents. + + + If you are using a version of the Python OpenTelemetry agent _before_ 1.27.0, the content of the header _must_ be URL-encoded. You can use the Python standard library's `urllib.parse.quote` function to encode the content of the header. +