package amqp

import "github.com/openzipkin/zipkin-go/reporter/amqp"

Package amqp implements a RabbitMq reporter to send spans to a Rabbit server/cluster.

Index

Functions

func NewReporter

func NewReporter(address string, options ...ReporterOption) (reporter.Reporter, error)

NewReporter returns a new RabbitMq-backed Reporter. address should be as described here: https://www.rabbitmq.com/uri-spec.html

Types

type ReporterOption

type ReporterOption func(c *rmqReporter)

ReporterOption sets a parameter for the rmqReporter

func Channel

func Channel(ch *amqp.Channel) ReporterOption

Channel sets the Channel used to send messages

func Connection

func Connection(conn *amqp.Connection) ReporterOption

Connection sets the Connection used to send messages

func Exchange

func Exchange(exchange string) ReporterOption

Exchange sets the Exchange used to send messages ( see https://github.com/openzipkin/zipkin/tree/master/zipkin-collector/rabbitmq if want to change default routing key or exchange

func Logger

func Logger(logger *log.Logger) ReporterOption

Logger sets the logger used to report errors in the collection process.

func Queue

func Queue(queue string) ReporterOption

Queue sets the Queue used to send messages

Source Files

amqp.go

Version
v0.4.1
Published
Oct 11, 2022
Platform
js/wasm
Imports
7 packages
Last checked
12 hours ago

Tools for package owners.