middleware

package
v1.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version, _ = tag.NewKey("version")
	Commit, _  = tag.NewKey("commit")
)
View Source
var (
	VenusInfo       = stats.Int64("info", "Arbitrary counter to tag venus info to", stats.UnitDimensionless)
	ChainNodeHeight = stats.Int64("chain/node_height", "Current Height of the node", stats.UnitDimensionless)
)
View Source
var (
	InfoView = &view.View{
		Name:        "info",
		Description: "Venus node information",
		Measure:     VenusInfo,
		Aggregation: view.LastValue(),
		TagKeys:     []tag.Key{Version, Commit},
	}
	ChainNodeHeightView = &view.View{
		Measure:     ChainNodeHeight,
		Aggregation: view.LastValue(),
	}
)

DefaultViews is an array of OpenCensus views for metric gathering purposes

Functions

func SetupJaegerTracing

func SetupJaegerTracing(serviceName string) *jaeger.Exporter

Types

This section is empty.

Jump to

Keyboard shortcuts

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