tracing

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 added in v1.1.1

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

Jump to

Keyboard shortcuts

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