segment

package
v0.93.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracker

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

Tracker is the segment implemention 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