| 1 |
// Code generated by gotmpl. DO NOT MODIFY. |
| 2 |
// source: internal/shared/otlp/otlptrace/header.go.tmpl |
| 3 |
|
| 4 |
// Copyright The OpenTelemetry Authors |
| 5 |
// SPDX-License-Identifier: Apache-2.0 |
| 6 |
|
| 7 |
package internal |
| 8 |
|
| 9 |
import ( |
| 10 |
"go.opentelemetry.io/otel/exporters/otlp/otlptrace" |
| 11 |
) |
| 12 |
|
| 13 |
// GetUserAgentHeader returns an OTLP header value form "OTel OTLP Exporter Go/{ .Version }" |
| 14 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/v1.20.0/specification/protocol/exporter.md#user-agent |
| 15 |
func GetUserAgentHeader() string { |
| 16 |
return "OTel OTLP Exporter Go/" + otlptrace.Version() |
| 17 |
} |