This example demonstrates basic usage of StarTower Orb for RabbitMQ instrumentation.
- RabbitMQ server running on localhost:5672
- Go 1.24+
docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-managementcd examples/basic
go mod tidy
go run main.go- Initializes OpenTelemetry with stdout exporter
- Connects to RabbitMQ with instrumentation
- Declares a queue
- Publishes a message with automatic tracing
- Consumes the message with automatic tracing
- Shows trace output in stdout
You should see trace spans for both publish and consume operations, showing the distributed tracing in action.