mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
remove quotes for otel auth config (#186797)
### 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

This commit is contained in:
parent
e017b0e8ed
commit
180fc2917f
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue