This PR adds support to specify secured communication and adding headers to the OTLP exporter. This is done via the command line otlp-secured and otlp-headers flag.
The default is insecured communication with no headers.
To use secure communication add the command line flag --otlp-secured
To specify headers, specify them as key/value pairs separated by commas
--oltp-headers=x-header-1=value1,x-header-2=value2
To accomplish this, updating to OpenTelemetry Go SDK 0.19.0 was required, which was a much larger undertaking due to the various internal API changes. A notable change is the name label/attribute added to spans conflicts with the Span's Name field. As such, the attribute was renamed to object.
This PR adds support to specify secured communication and adding headers to the OTLP exporter. This is done via the command line
otlp-secured
andotlp-headers
flag.The default is insecured communication with no headers.
To use secure communication add the command line flag
--otlp-secured
To specify headers, specify them as key/value pairs separated by commas
--oltp-headers=x-header-1=value1,x-header-2=value2
To accomplish this, updating to OpenTelemetry Go SDK 0.19.0 was required, which was a much larger undertaking due to the various internal API changes. A notable change is the
name
label/attribute added to spans conflicts with the Span'sName
field. As such, the attribute was renamed toobject
.