telemetry

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0, MIT Imports: 18 Imported by: 0

README

telemetry

measures and compares indexer and provider metrics

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Release is the release version tag value, e.g. "v1.2.3"
	Release string
	// Revision is the git commit hash.
	Revision string
	// Version is the full version string: Release-Revision.
	Version string
	// Modified indicates if the source tree had local modifications.
	Modified bool
)

Functions

This section is empty.

Types

type Rate

type Rate struct {
	Count   uint64
	Elapsed time.Duration
	Samples int
}

type Telemetry

type Telemetry struct {
	// contains filtered or unexported fields
}

func New

func New(adDepthLimit int64, updateIn, updateTo time.Duration, pc *pcache.ProviderCache, met *metrics.Metrics, indexerAdminURLs []string, slowRate, nSlowest int, topic string) (*Telemetry, error)

func (*Telemetry) Close

func (tel *Telemetry) Close()

func (*Telemetry) GetProvider

func (tel *Telemetry) GetProvider(ctx context.Context, providerID peer.ID, w io.Writer) bool

func (*Telemetry) ListProviders

func (tel *Telemetry) ListProviders(ctx context.Context, w io.Writer)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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