metric

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 10 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
	Scope             instrumentation.Scope
	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