telemetry

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

Enable will attach default telemetry information to the ctx so telemetry will be reported during the project lifecycle.

func EnableWith

func EnableWith(ctx context.Context, opts *Options) (context.Context, context.CancelFunc)

EnableWith will attach custom telemetry information to the ctx.

Types

type Options

type Options struct {
	Endpoint    string
	Application string
}

Options specify telemetry client options.

func ExtractOptions

func ExtractOptions(ctx context.Context) *Options

ExtractOptions returns a bool whether the context has telemetry enabled and the options set.

Jump to

Keyboard shortcuts

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