metric

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExporter

func NewExporter(p *NewExporterParams) (sdkmetric.Exporter, error)

Types

type GenerateParams

type GenerateParams struct {
	Resource          *resource.Resource
	MetricName        string
	MetricType        string
	MetricDescription string
	MetricUnit        string
	DataPointAttrs    map[string]string
	DataPointTime     time.Time
	DataPointValue    float64
}

type NewExporterParams

type NewExporterParams struct {
	OTLPEndpoint string
	OTLPHeaders  map[string]string
	OTLPProtocol string
	OTLPInsecure bool
}

Jump to

Keyboard shortcuts

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