datadog

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(originalConfig gotracing.Config) (gotracing.Tracing, error)

Types

type Tracing

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

func (*Tracing) AttachTag

func (t *Tracing) AttachTag(ctx context.Context, key string, value interface{})

func (*Tracing) CreateRootMux

func (t *Tracing) CreateRootMux() (*mux.Router, http.Handler)

func (*Tracing) DynamicFields

func (t *Tracing) DynamicFields() []zapctx.DynamicFields

func (*Tracing) GrpcClientInterceptors added in v0.2.0

func (t *Tracing) GrpcClientInterceptors(serviceName string) ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor)

func (*Tracing) GrpcServerInterceptors added in v0.2.0

func (t *Tracing) GrpcServerInterceptors(serviceName string) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)

func (*Tracing) StartSpanFromContext

func (t *Tracing) StartSpanFromContext(ctx context.Context, cfg gotracing.SpanConfig, callback func(ctx context.Context) error) (retErr error)

func (*Tracing) WrapRoundTrip

func (t *Tracing) WrapRoundTrip(rt http.RoundTripper) http.RoundTripper

Jump to

Keyboard shortcuts

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