tracing

package
Version: v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: BSD-3-Clause Imports: 6 Imported by: 6

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.2.0

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 WithRecordedValueMaxLength added in v1.4.0

func WithRecordedValueMaxLength(l int) StartOption

WithRecordedValueMaxLength specifies the maximum length a tag/log value can have. Values are completely truncated when set to 0. Ignored when set to -1.

func WithServiceName

func WithServiceName(serviceName string) StartOption

WithServiceName changes the reported service name

func WithoutLibraryTags added in v1.2.0

func WithoutLibraryTags() StartOption

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

Source Files

Jump to

Keyboard shortcuts

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