segment

package
v0.175.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTracker = New(true)

DefaultTracker is the default Tracker.

Functions

This section is empty.

Types

type Tracker

type Tracker struct {
	Enabled bool
	// contains filtered or unexported fields
}

Tracker is the segment implementation for usage.Tracker.

func New

func New(enabled bool) *Tracker

New creates a new instance of Tracker.

func (*Tracker) Close

func (t *Tracker) Close() error

Close closes the underlying client.

func (*Tracker) Collect

func (t *Tracker) Collect(subject string, props usage.Properties)

Collect reports the usage of subject along with its attached metadata that is props.

Jump to

Keyboard shortcuts

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