opentelemetry

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataCarrier

type MetadataCarrier map[string]string

func (MetadataCarrier) Get

func (m MetadataCarrier) Get(key string) string

func (MetadataCarrier) Keys

func (m MetadataCarrier) Keys() []string

func (MetadataCarrier) Set

func (m MetadataCarrier) Set(key, value string)

type Middleware

type Middleware struct {
}

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