metrics

package
v1.152.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled added in v1.152.0

func IsEnabled(c *Config) bool

IsEnabled for tracer.

func NewMeter added in v1.96.0

func NewMeter(lc fx.Lifecycle, env env.Environment, ver version.Version, cfg *Config) (m.Meter, error)

NewMeter for metrics.

func NewNoopMeter added in v1.152.0

func NewNoopMeter() m.Meter

NewNoopMeter for metrics.

func Register added in v1.96.0

func Register(server *shttp.Server) error

Register metrics.

Types

type Config added in v1.152.0

type Config struct {
	Enabled bool   `yaml:"enabled,omitempty" json:"enabled,omitempty" toml:"enabled,omitempty"`
	Kind    string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"`
	Host    string `yaml:"host,omitempty" json:"host,omitempty" toml:"host,omitempty"`
}

Config for tracer.

func (*Config) IsOTLP added in v1.152.0

func (c *Config) IsOTLP() bool

IsOTLP configuration.

Jump to

Keyboard shortcuts

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