Documentation ¶
Index ¶
- func Attributes(kvs ...*commonpb.KeyValue) []*commonpb.KeyValue
- func Float64DataPoint(attributes []*commonpb.KeyValue, start, end time.Time, value float64) *metricspb.NumberDataPoint
- func Gauge(name, desc, unit string, idps ...*metricspb.NumberDataPoint) *metricspb.Metric
- func Histogram(name, desc, unit string, tempo metricspb.AggregationTemporality, ...) *metricspb.Metric
- func HistogramDataPoint(attributes []*commonpb.KeyValue, start, end time.Time, sum float64, ...) *metricspb.ExponentialHistogramDataPoint
- func Int64DataPoint(attributes []*commonpb.KeyValue, start, end time.Time, value int64) *metricspb.NumberDataPoint
- func KeyIntValue(k string, v int) *commonpb.KeyValue
- func KeyValue(k, v string) *commonpb.KeyValue
- func MinMaxSumCount(name, desc, unit string, tempo metricspb.AggregationTemporality, ...) *metricspb.Metric
- func MinMaxSumCountDataPoint(attributes []*commonpb.KeyValue, start, end time.Time, sum float64, ...) *metricspb.HistogramDataPoint
- func Resource(kvs ...*commonpb.KeyValue) *resourcepb.Resource
- func ResourceMetrics(resource *resourcepb.Resource, schemaURL string, ...) *metricspb.ResourceMetrics
- func Scope(name, version string) *commonpb.InstrumentationScope
- func ScopeMetrics(scope *commonpb.InstrumentationScope, ms ...*metricspb.Metric) *metricspb.ScopeMetrics
- func Sum(name, desc, unit string, tempo metricspb.AggregationTemporality, monotone bool, ...) *metricspb.Metric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64DataPoint ¶
func Gauge ¶
func Gauge(name, desc, unit string, idps ...*metricspb.NumberDataPoint) *metricspb.Metric
func Histogram ¶
func Histogram(name, desc, unit string, tempo metricspb.AggregationTemporality, idps ...*metricspb.ExponentialHistogramDataPoint) *metricspb.Metric
func HistogramDataPoint ¶
func Int64DataPoint ¶
func MinMaxSumCount ¶
func MinMaxSumCount(name, desc, unit string, tempo metricspb.AggregationTemporality, idps ...*metricspb.HistogramDataPoint) *metricspb.Metric
func MinMaxSumCountDataPoint ¶
func ResourceMetrics ¶
func ResourceMetrics(resource *resourcepb.Resource, schemaURL string, ilms ...*metricspb.ScopeMetrics) *metricspb.ResourceMetrics
func Scope ¶
func Scope(name, version string) *commonpb.InstrumentationScope
func ScopeMetrics ¶
func ScopeMetrics(scope *commonpb.InstrumentationScope, ms ...*metricspb.Metric) *metricspb.ScopeMetrics
func Sum ¶
func Sum(name, desc, unit string, tempo metricspb.AggregationTemporality, monotone bool, idps ...*metricspb.NumberDataPoint) *metricspb.Metric
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.