tracing

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(ctx context.Context, err error)

func AddField

func AddField(ctx context.Context, key string, val interface{})

func Close

func Close()

func DoHttpRequest

func DoHttpRequest(r *http.Request) (*http.Response, error)

func Initialize

func Initialize(config Config)

func WrapHandler

func WrapHandler(handler http.Handler) http.Handler

Types

type Config

type Config struct {
	ServiceName       string `split_words:"true" default:"vvgo"`
	HoneycombWriteKey string `split_words:"true" default:""`
	HoneycombDataset  string `split_words:"true" default:"development"`
}

type Span

type Span struct {
	*trace.Span
}

func StartSpan

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

Jump to

Keyboard shortcuts

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