opentracing

package
v0.0.0-...-d1c628d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Tracer opentracing.Tracer
}

Middleware provides opentracing for pubsub to persist traces

func (Middleware) PublisherMsgInterceptor

func (o Middleware) PublisherMsgInterceptor(serviceName string, next pubsub.PublishHandler) pubsub.PublishHandler

PublisherMsgInterceptor inserts opentracing headers into an outgoing msg

func (Middleware) SubscribeInterceptor

func (o Middleware) SubscribeInterceptor(opts pubsub.HandlerOptions, next pubsub.MsgHandler) pubsub.MsgHandler

SubscribeInterceptor returns a subscriber middleware with opentracing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL