google

package
v0.0.0-...-9575350 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 13 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 {
	ProjectID      string
	MetricPrefix   string
	Fraction       float64
	GitProjectPath string
}

func (*Config) NewTracer

func (c *Config) NewTracer(ctx context.Context) (yabs_trace.Tracer, error)

type Tracer

type Tracer struct {
	Exporter *stackdriver.Exporter
	// contains filtered or unexported fields
}

func NewGoogleTracing

func NewGoogleTracing(config *Config) (*Tracer, error)

func (*Tracer) NewClientInterceptorSpan

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

func (*Tracer) NewClientSpan

func (t *Tracer) NewClientSpan(ctx context.Context, pkg, method string) (context.Context, *yabs_trace.Span)

func (*Tracer) NewServerInterceptorSpan

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

func (*Tracer) NewServerSpan

func (t *Tracer) NewServerSpan(ctx context.Context, pkg, method string) (context.Context, *yabs_trace.Span)

func (*Tracer) NewSpan

func (t *Tracer) NewSpan(ctx context.Context, pkg, method string) (context.Context, *yabs_trace.Span)

func (*Tracer) NewSpanHTTP

func (t *Tracer) NewSpanHTTP(r *http.Request, pkg, method string) (*http.Request, *yabs_trace.Span)

func (*Tracer) SetErrStatus

func (t *Tracer) SetErrStatus(span *trace.Span, code int32, err error, obj ...string)

Jump to

Keyboard shortcuts

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