package
3.5.5+incompatible
Repository: https://github.com/carwale/golibraries.git
Documentation: pkg.go.dev
# Functions
Logger sets the logger for consulDefaults to consul logger.
NewRabbitMQCollector returns a new rabbitmq-backed Collector.
NewZipkinTracer returns a zipkin tracer object.This is a singleton function, so will return the same instance of tracer ifcalled multiple times.
RabbitmqBatchInterval sets the maximum duration we will buffer traces before emitting them to the collector.
RabbitmqBatchSize sets the maximum batch size, after which a collect will be triggered.
RabbitMQLogger sets the logger for consulDefaults to consul logger.
RabbitmqMaxBacklog sets the maximum backlog size, when batch size reaches this threshold, spans from the beginning of the batch will be disposed.
RabbitmqQueueName sets the queue name on which zipkin will send messages.Defaults to "zipkin".
RabbitmqRequestCallback registers a callback function to adjust the collector *http.Request before it sends the request to Zipkin.
SetRabbitMqServers will set the servers for rabbitmq serverThis options should be given.Defaults to localhost.
SetServiceName will set the name of the application is zipkinshould be used.
SetZipkinHTTPEndPoint will set the zipkin endpointDefaults to "http://127.0.0.1:/api/v1/spans".
# Constants
IsSampled is the constant that is used by all zipkin libraries accross for tracing.
ParentSpanID is the constant that is used by all zipkin libraries accross for tracing.
SpanID is the constant that is used by all zipkin libraries accross for tracing.
TraceID is the constant that is used by all zipkin libraries accross for tracing.
# Structs
RabbitMQCollector implements Collector by publishing spans to a rabbitmq broker.
ZipkinTracer is the structure that holds zipkin related information.
# Type aliases
Options sets options for zipkin tracer.
RabbitmqOption sets a parameter for the rabbitmqCollector.
RequestCallback receives the initialized request from the Collector before sending it over the wire.