telemetry

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracerProvider

func InitTracerProvider(c *conf.Trace, serviceName, env string) (func(), error)

InitTracerProvider 初始化 OpenTelemetry Trace Provider,并返回关闭回调。

Types

type Metrics

type Metrics struct {
	Requests metric.Int64Counter
	Seconds  metric.Float64Histogram
	Handler  http.Handler
}

func NewMetrics

func NewMetrics(c *conf.Metrics, app *conf.App, l logger.Logger) (*Metrics, error)

Jump to

Keyboard shortcuts

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