Aller au contenu principal

Go

Use the OpenTelemetry Go SDK and the OTLP exporter:

exp, _ := otlptracehttp.New(ctx,
otlptracehttp.WithEndpoint("avuruobs-gateway:4318"),
otlptracehttp.WithInsecure(),
)

Set OTEL_SERVICE_NAME so spans carry a stable identity.

:::note This page is expanding A complete example with metrics and graceful shutdown is on the way. :::