tracing

package
v2.23.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithOptions

func ContextWithOptions(ctx context.Context, opts Options) context.Context

ContextWithOptions returns a new context.Context with the indicated tracing options.

Types

type Options

type Options struct {
	// PropagateSpans indicates that spans should be propagated from the client to the Pulumi service when making API
	// calls.
	PropagateSpans bool
	// IncludeTracingHeader indicates that API calls should include the indicated tracing header contents.
	TracingHeader string
}

TracingOptions describes the set of options available for configuring tracing on a per-request basis.

func OptionsFromContext

func OptionsFromContext(ctx context.Context) Options

OptionsFromContext retrieves any tracing options present in the given context. If no options are present, this function returns the zero value.

Jump to

Keyboard shortcuts

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