Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportRequest

type ExportRequest struct {
	ResourceMetrics []ResourceMetrics `json:"resourceMetrics"`
}

type KeyValue

type KeyValue struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

type Metrics

type Metrics struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Unit        string `json:"unit"`
	Sum         *Sum   `json:"sum"`
}

type NumberDataPoint added in v1.1.1

type NumberDataPoint struct {
	AsDouble float64 `json:"asDouble"`
}

type Resource

type Resource struct {
	Attributes []KeyValue `json:"attributes"`
}

type ResourceMetrics

type ResourceMetrics struct {
	Resource     Resource       `json:"resource,omitempty"`
	ScopeMetrics []ScopeMetrics `json:"scopeMetrics"`
}

type ScopeMetrics

type ScopeMetrics struct {
	Scope   instrumentation.Scope `json:"scope"`
	Metrics []Metrics             `json:"metrics"`
}

type Sum added in v1.1.1

type Sum struct {
	DataPoints []NumberDataPoint `json:"dataPoints"`
}

Jump to

Keyboard shortcuts

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