Documentation ¶
Index ¶
Constants ¶
View Source
const EnvVarOTelCollectorEndpoint = "OTEL_COLLECTOR_ENDPOINT"
EnvVarOTelCollectorEndpoint the env var containing the OpenTelemetry Collector endpoint
Variables ¶
This section is empty.
Functions ¶
func InitOTelTraceProvider ¶
func InitOTelTraceProvider(serviceName string) func()
InitOTelTraceProvider configures the OpenTelemetry SDK to export the spans to collector via OTLP/GRPC
The SDK uses the collector endpoint defined in the environment variable: OTEL_COLLECTOR_ENDPOINT The environment variable can be set by adding it to the values.yaml file and doing a `helm upgrade`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.