Categorygithub.com/ONSdigital/dp-otel-go
modulepackage
0.0.8
Repository: https://github.com/onsdigital/dp-otel-go.git
Documentation: pkg.go.dev

# README

dp-otel-go

OpenTelemetry startup code for Go services

How to use

You need the following environment variables set:

    OTEL_SERVICE_NAME
	OTEL_EXPORTER_OTLP_ENDPOINT

NB the endpoint should be of the form: "hostname:" - no protocol identifier

in your service initialisation code:

    shutdown, err := SetupOTelSDK(context.Background())

TO DO

# Functions

setupOTelSDK bootstraps the OpenTelemetry pipeline.

# Structs

Config holds the config used to initialise the OpenTelemetry Client.