tracing

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(opts ...StartOption)

Start tracing globally

func Stop

func Stop()

Stop tracing globally

Types

type StartOption

type StartOption = func(*config)

StartOption is a function that configures an option for Start

func WithAccessToken

func WithAccessToken(accessToken string) StartOption

WithAccessToken configures the SignalFx access token to use when reporting

func WithEndpointURL

func WithEndpointURL(url string) StartOption

WithEndpointURL configures the URL to send traces to

func WithGlobalTag

func WithGlobalTag(k string, v string) StartOption

WithGlobalTag sets a tag with the given key/value on all spans created by the tracer. This option may be used multiple times. Note: Since the underlying transport is Zipkin, only values with strings are accepted.

func WithServiceName

func WithServiceName(serviceName string) StartOption

WithServiceName changes the reported service name

func WithoutLibraryTags

func WithoutLibraryTags() StartOption

WithoutLibraryTags prevents the tracer from injecting tracing library metadata as span tags.

Jump to

Keyboard shortcuts

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