plugins

package
v0.0.0-...-4ac4421 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//TracingComponentTag tags
	TracingComponentTag = opentracing.Tag{Key: string(ext.Component), Value: "gRPC"}
)

Functions

func ClientInterceptor

func ClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor

func DialOption

func DialOption(tracer opentracing.Tracer) grpc.DialOption

func NewJaegerTracer

func NewJaegerTracer(serviceName string, jagentHost string) (tracer opentracing.Tracer, closer io.Closer, err error)

NewJaegerTracer NewJaegerTracer for current service

func OpenTracingClientInterceptor

func OpenTracingClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor

OpenTracingClientInterceptor rewrite client's interceptor with open tracing

func OpentracingServerInterceptor

func OpentracingServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

OpentracingServerInterceptor rewrite server's interceptor with open tracing

func ServerInterceptor

func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

func ServerOption

func ServerOption(tracer opentracing.Tracer) grpc.ServerOption

Types

type JaegerConfiguration

type JaegerConfiguration struct {
	jaegercfg.Configuration
	// contains filtered or unexported fields
}

type MDReaderWriter

type MDReaderWriter struct {
	metadata.MD
}

MDReaderWriter metadata Reader and Writer

func (MDReaderWriter) ForeachKey

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

ForeachKey range all keys to call handler

func (MDReaderWriter) Set

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

Set implements Set() of opentracing.TextMapWriter

Jump to

Keyboard shortcuts

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