Skip to content

Commit

Permalink
remove quotes for otel auth config (elastic#186797)
Browse files Browse the repository at this point in the history
### Summary

When doing configuration of an OpenTelemetry agent, most of the
environment variables are provided with only the value, but the auth
headers one is using quotes.

When using a shell script or YAML to set environment variables, the
value has to be quoted due to spaces, but it's not always the case, for
example when setting an environment variable in Windows.

Also, removing the quotes makes it consistent with other environment
variable values.

### Screenshot before

![Screenshot from 2024-06-24
11-21-52](https://github.com/elastic/kibana/assets/763082/8b2c513a-a5d2-4a50-b908-6d14240bf169)
  • Loading branch information
SylvainJuge authored Jul 12, 2024
1 parent e017b0e commit 180fc29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function OpenTelemetryInstructions({ apmServerUrl, secretToken }: Props)
},
{
setting: 'OTEL_EXPORTER_OTLP_HEADERS',
value: `"Authorization=Bearer ${secretToken ? secretToken : '<secret-token>'}"`,
value: `Authorization=Bearer ${secretToken ? secretToken : '<secret-token>'}`,
},
{
setting: 'OTEL_METRICS_EXPORTER',
Expand Down

0 comments on commit 180fc29

Please sign in to comment.