Documentation
¶
Index ¶
- Constants
- func ChangeMetrics(changeFunc func(metrics *Metrics))
- func Init(ctx context.Context) error
- func IsEnabled() bool
- func NewController(exporter *otlpmetric.Exporter) *controller.Controller
- func NewExporter(url string) (*otlpmetric.Exporter, error)
- func SetupController(ctx context.Context, url string) error
- func Shutdown(ctx context.Context) error
- type Metrics
Constants ¶
View Source
const (
URL = "http://localhost:4318/v1/metrics"
)
Variables ¶
This section is empty.
Functions ¶
func ChangeMetrics ¶
func ChangeMetrics(changeFunc func(metrics *Metrics))
func NewController ¶
func NewController(exporter *otlpmetric.Exporter) *controller.Controller
func NewExporter ¶
func NewExporter(url string) (*otlpmetric.Exporter, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.