otlp

package
v0.0.0-...-e670723 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Http struct {
		Url string `yaml:"url"`
	} `yaml:"http"`
	Grpc struct {
		Url string `yaml:"url"`
	} `yaml:"grpc"`
	Prefix string `yaml:"prefix"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) (*Service, error)

func (*Service) CollectAndPushMetrics

func (s *Service) CollectAndPushMetrics(ctx context.Context, measurements map[string]interface{}) error

CollectAndPushMetrics triggers the collection and export of metrics over OTLP

Jump to

Keyboard shortcuts

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