stackdriver

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	ProjectID               string
	Propagation             propagation.HTTPFormat
	BundleCountThreshold    int
	BundleDelayThreshold    time.Duration
	IsPublicEndpoint        bool
	FormatSpanName          func(r *http.Request) string
	StartOptions            trace.StartOptions
	MonitoringClientOptions []option.ClientOption
	TraceClientOptions      []option.ClientOption
}

Trace middleware

func NewTrace

func NewTrace() *Trace

NewTrace creates new stack driver trace middleware

func (Trace) ServeHandler

func (m Trace) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

Jump to

Keyboard shortcuts

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