util

package
v0.0.0-...-7a45337 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(serviceName string, notrace bool) error

Init initializes logging and tracing for the given service. Call this before using logging or tracing. The notrace flag will disable tracing.

func NewContextHandler

func NewContextHandler(handler http.Handler) http.Handler

NewContextHandler returns an http.Handler which implements tracing and context middleware.

func NewInstrumentedHTTPClient

func NewInstrumentedHTTPClient() *http.Client

NewInstrumentedHTTPClient returns an http.Client that is instrumented for tracing and will propagate context values as request headers.

func WithRef

func WithRef(ctx context.Context, ref string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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