trace

package
v0.0.0-...-939b1f7 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientInterceptor

func ClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor

func NewTracer

func NewTracer(service string) (opentracing.Tracer, io.Closer)

func ServerInterceptor

func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

Types

type MDReaderWriter

type MDReaderWriter struct {
	metadata.MD
}

custom MD carrier

func (MDReaderWriter) ForeachKey

func (m MDReaderWriter) ForeachKey(handler func(key, val string) error) error

the carrier must be a TextMapReader

func (MDReaderWriter) Set

func (m MDReaderWriter) Set(key, val string)

the carrier must be a TextMapWriter

Jump to

Keyboard shortcuts

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