2023-08-02 12:28:35 -07:00
|
|
|
// Code created by gotmpl. DO NOT MODIFY.
|
|
|
|
// source: internal/shared/otlp/otlptrace/header.go.tmpl
|
|
|
|
|
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-02-29 07:05:28 +01:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2023-08-02 12:28:35 -07:00
|
|
|
|
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.opentelemetry.io/otel/exporters/otlp/otlptrace"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetUserAgentHeader returns an OTLP header value form "OTel OTLP Exporter Go/{ .Version }"
|
|
|
|
// https://github.com/open-telemetry/opentelemetry-specification/blob/v1.20.0/specification/protocol/exporter.md#user-agent
|
|
|
|
func GetUserAgentHeader() string {
|
|
|
|
return "OTel OTLP Exporter Go/" + otlptrace.Version()
|
|
|
|
}
|