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

![Screenshot from 2024-06-24
11-21-52](8b2c513a-a5d2-4a50-b908-6d14240bf169)
This commit is contained in:
SylvainJuge 2024-07-12 11:07:00 +02:00 committed by GitHub
parent e017b0e8ed
commit 180fc2917f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',