metrics

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0, MIT Imports: 2 Imported by: 5 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package metrics provides metric constructors for Bitswap operations, including histograms for received, sent, and duplicate block sizes and for message send times.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveBlocksGauge

func ActiveBlocksGauge(ctx context.Context) metrics.Gauge

func ActiveEngineGauge

func ActiveEngineGauge(ctx context.Context) metrics.Gauge

func AllHist

func AllHist(ctx context.Context) metrics.Histogram

func BlocksReceivedGauge added in v0.32.0

func BlocksReceivedGauge(ctx context.Context) metrics.Gauge

func BroadcastSkipGauge added in v0.32.0

func BroadcastSkipGauge(ctx context.Context) metrics.Gauge

func DupHist

func DupHist(ctx context.Context) metrics.Histogram

func HavesReceivedGauge added in v0.32.0

func HavesReceivedGauge(ctx context.Context) metrics.Gauge

func PendingBlocksGauge

func PendingBlocksGauge(ctx context.Context) metrics.Gauge

func PendingEngineGauge

func PendingEngineGauge(ctx context.Context) metrics.Gauge

func SendTimeHist

func SendTimeHist(ctx context.Context) metrics.Histogram

func SentHist

func SentHist(ctx context.Context) metrics.Histogram

Types

This section is empty.

Jump to

Keyboard shortcuts

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