This repo is an example for how to make tracing work well for an exotic trace type, batch jobs.
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.