log

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Fraction float64
}

func (*Config) NewTracer

func (c *Config) NewTracer() error

type Tracer

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

func (*Tracer) NewClientInterceptorSpan

func (t *Tracer) NewClientInterceptorSpan(ctx context.Context, name string) (context.Context, *tracing.Span)

func (*Tracer) NewClientSpan

func (t *Tracer) NewClientSpan(ctx context.Context, caller string) (context.Context, *tracing.Span)

func (*Tracer) NewServerInterceptorSpan

func (t *Tracer) NewServerInterceptorSpan(ctx context.Context, name string) (context.Context, *tracing.Span)

func (*Tracer) NewServerSpan

func (t *Tracer) NewServerSpan(ctx context.Context, caller string) (context.Context, *tracing.Span)

func (*Tracer) NewSpan

func (t *Tracer) NewSpan(ctx context.Context, caller string) (context.Context, *tracing.Span)

func (*Tracer) NewSpanHTTP

func (t *Tracer) NewSpanHTTP(r *http.Request, caller string) (*http.Request, *tracing.Span)

func (*Tracer) Sampler

func (t *Tracer) Sampler() trace.Sampler

func (*Tracer) Start

func (t *Tracer) Start() error

Jump to

Keyboard shortcuts

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