Skip to content

Commit

Permalink
docs/otel-direct: fix code snippet rendering in table (#4095)
Browse files Browse the repository at this point in the history
* docs/otel-direct: fix code snippet rendering in table

* Update docs/en/observability/apm/otel-direct.asciidoc
  • Loading branch information
xrmx authored Jul 26, 2024
1 parent 7d0ab74 commit 8e5c9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/observability/apm/otel-direct.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ java -javaagent:/path/to/opentelemetry-javaagent-all.jar \

| `OTEL_EXPORTER_OTLP_ENDPOINT` | APM Server URL. The host and port that APM Server listens for events on.

| `OTEL_EXPORTER_OTLP_HEADERS` | Authorization header that includes the Elastic APM Secret token or API key: `"Authorization=Bearer an_apm_secret_token"` or `"Authorization=ApiKey an_api_key"`.
| `OTEL_EXPORTER_OTLP_HEADERS` a| Authorization header that includes the Elastic APM Secret token or API key: `"Authorization=Bearer an_apm_secret_token"` or `"Authorization=ApiKey an_api_key"`.

For information on how to format an API key, see
{observability-guide}/apm-api-key.html[API keys].

Please note the required space between `Bearer` and `an_apm_secret_token`, and `ApiKey` and `an_api_key`.

Some language implementations of the OpenTelemetry agent, namely Python, requires the content of the header to be URL encoded. For the `Bearer` token that would mean just substituting the space between `Bearer` an the token with `%20`, e.g. ``"Authorization=Bearer%20an_apm_secret_token"`, for an API Key you can use the following snippet to handle that:
Some language implementations of the OpenTelemetry agent, namely Python, requires the content of the header to be URL encoded. For the `Bearer` token that would mean just substituting the space between `Bearer` an the token with `%20`, e.g. `"Authorization=Bearer%20an_apm_secret_token"`, for an API key you can use the following snippet to handle that:

[source,python]
----
Expand Down

0 comments on commit 8e5c9cd

Please sign in to comment.