Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 834 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 834 Bytes

Batch Job Example for OpenTelemetry using Go

This repo is an example for how to make tracing work well for an exotic trace type, batch jobs.

Run it

To run it locally, export some environment variables

OTEL_SERVICE_NAME=otel-go-batch
OTEL_EXPORTER_OTLP_ENDPOINT="https://api.honeycomb.io:443"
OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=[your environment api key]"

In the root directory, run:

go run .

Depending on the branch, it may show different console output. If it completes successfully, Done with the batch jobs is displayed.