otel-go-batch

command module
v0.0.0-...-2344b59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL