opentracing

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextToKafka

func ContextToKafka(tracer opentracing.Tracer, logger log.Logger) transport.RequestFunc

func KafkaToContext

func KafkaToContext(tracer opentracing.Tracer, operationName string, logger log.Logger) transport.RequestFunc

func TraceConsumer

func TraceConsumer(tracer opentracing.Tracer, operationName string, opts ...EndpointOption) endpoint.Middleware

func TraceEndpoint

func TraceEndpoint(tracer opentracing.Tracer, operationName string, opts ...EndpointOption) endpoint.Middleware

Types

type EndpointOption

type EndpointOption func(*EndpointOptions)

func WithIgnoreBusinessError

func WithIgnoreBusinessError(ignoreBusinessError bool) EndpointOption

func WithOperationNameFunc

func WithOperationNameFunc(getOperationName func(ctx context.Context, name string) string) EndpointOption

func WithOptions

func WithOptions(options EndpointOptions) EndpointOption

func WithTags

func WithTags(tags opentracing.Tags) EndpointOption

func WithTagsFunc

func WithTagsFunc(getTags func(ctx context.Context) opentracing.Tags) EndpointOption

type EndpointOptions

type EndpointOptions struct {
	IgnoreBusinessError bool

	GetOperationName func(ctx context.Context, name string) string

	Tags opentracing.Tags

	GetTags func(ctx context.Context) opentracing.Tags
}

type HeadersTextMapCarrier

type HeadersTextMapCarrier struct {
	// contains filtered or unexported fields
}

func (HeadersTextMapCarrier) ForeachKey

func (c HeadersTextMapCarrier) ForeachKey(handler func(key string, val string) error) error

func (*HeadersTextMapCarrier) Set

func (c *HeadersTextMapCarrier) Set(key, val string)

Jump to

Keyboard shortcuts

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