Categorygithub.com/wzy9607/amqp091otel
modulepackage
0.0.0-20241219001952-e6d22834a4e2
Repository: https://github.com/wzy9607/amqp091otel.git
Documentation: pkg.go.dev

# README

OpenTelemetry RabbitMQ Client Instrumentation for Golang

ci codecov

This module provides OpenTelemetry instrumentation for the Go RabbitMQ Client Library github.com/rabbitmq/amqp091-go.

As for now, this module only provides tracing instrumentation.

Compatibility

This module supports the same go versions as the opentelemetry-go project.

Installation

go get -u github.com/wzy9607/amqp091otel

# Functions

ContextFromDelivery returns the context that contains the traces associated with the amqp091.Delivery.
NewChannel returns an [amqp091.Channel] with OpenTelemetry tracing instrumentation.
WithPropagators sets the propagators.
WithTracerProvider sets the tracer provider.

# Structs

Channel wraps an [amqp091.Channel] with OpenTelemetry tracing instrumentation.

# Type aliases

Option sets optional config properties.