Skip to content

Commit

Permalink
Port #4280 to serverless (#4296)
Browse files Browse the repository at this point in the history
* update otel doc with note

* fix copy-paste error
  • Loading branch information
colleenmcginnis authored Sep 25, 2024
1 parent e1ded97 commit 5b9d109
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ java -javaagent:/path/to/opentelemetry-javaagent-all.jar \
<DocCell>`OTEL_EXPORTER_OTLP_HEADERS`</DocCell>
<DocCell>
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 <DocLink slug="/serverless/observability/apm-keep-data-secure" section="secure-communication-with-apm-agents">Secure communication with APM agents</DocLink>.

<DocCallOut title="Note">
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.
</DocCallOut>
</DocCell>
</DocRow>
<DocRow>
Expand Down

0 comments on commit 5b9d109

Please sign in to comment.