segment

package
v0.67.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 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 {
	// contains filtered or unexported fields
}

Tracker is the segment implemention for usage.Tracker.

func New

func New() *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