# README
Usage
Interceptors based solution
// create new tracer
// register tracer with GlobalTracer
opentracing.SetGlobalTracer(tracer)
Producer
tracingInterceptor := &pulsartracing.ProducerInterceptor{}
options := pulsar.ProducerOptions{
Topic: topicName,
Interceptors: pulsar.ProducerInterceptors{tracingInterceptor},
}
Consumer
tracingInterceptor := &pulsartracing.ConsumerInterceptor{}
options := pulsar.ConsumerOptions{
Topics: topicName,
SubscriptionName: subscriptionName,
Type: pulsar.Shared,
Interceptors: pulsar.ConsumerInterceptors{tracingInterceptor},
}
// to create span with message as parent span
span := pulsartracing.CreateSpanFromMessage(message, tracer, "child_span")
License
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
ConsumerMessageExtractAdapter Implements TextMap Interface.
ConsumerMessageInjectAdapter Implements TextMap Interface.
No description provided by the author
ProducerMessageExtractAdapter Implements TextMap Interface.
ProducerMessageInjectAdapter Implements TextMap Interface.