otel

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

OpenTelemetry tracing

Set Config.TracerProvider and print the foreman.insert <kind> and foreman.work <kind> spans with their job attributes.

docker compose -f deploy/docker-compose.yml up -d --wait postgres  # Postgres on localhost:55432
go run ./examples/otel                                             # safe to rerun

In production, use an OTLP exporter.

Default FOREMAN_DATABASE_URL: postgres://foreman:foreman@localhost:55432/foreman?sslmode=disable.

Expected output

span: foreman.insert resize
span: foreman.work resize
foreman.job.attempt=1

Documentation

Overview

Command otel traces job work with OpenTelemetry.

Jump to

Keyboard shortcuts

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