tracing

package
v0.0.0-...-0172641 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveSpan

func ActiveSpan(ctx context.Context) ot.Span

ActiveSpan gets the current span from the context

func ExtractOTHeadersFromContext

func ExtractOTHeadersFromContext(ctx context.Context) *metadata.MD

ExtractOTHeadersFromContext creates metadata from Zipkin B3 propagation HTTP headers

func GRPCClientOptions

func GRPCClientOptions() []grpc.DialOption

GRPCClientOptions applies interceptors for tracing on GRPC clients

func GRPCServerOptions

func GRPCServerOptions() []grpc.ServerOption

GRPCServerOptions applies interceptors for tracing on GRPC servers

func GlobalTracer

func GlobalTracer() ot.Tracer

GlobalTracer returns the global instance of the Jaeger tracer

func InitGlobalTracer

func InitGlobalTracer(name string)

InitGlobalTracer applies a jaeger based global tracer

func StartChildSpan

func StartChildSpan(childSpan ot.Span, name string) ot.Span

StartChildSpan is a wrapper method to start a subspan

func StartSpan

func StartSpan(ctx context.Context, name string) (ot.Span, context.Context)

StartSpan starts a new span from a given context

Types

This section is empty.

Jump to

Keyboard shortcuts

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