Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricDataToOtlp ¶
func MetricDataToOtlp(md MetricData) []*otlpmetrics.ResourceMetrics
MetricDataToOtlp converts the internal MetricData to the OTLP.
func NewBoolValue ¶ added in v0.7.0
func NewBoolValue(b bool) *commonproto.AnyValue
func NewDoubleValue ¶ added in v0.7.0
func NewDoubleValue(d float64) *commonproto.AnyValue
func NewIntValue ¶ added in v0.7.0
func NewIntValue(i int64) *commonproto.AnyValue
func NewStringValue ¶ added in v0.7.0
func NewStringValue(s string) *commonproto.AnyValue
Types ¶
type MetricData ¶
type MetricData struct {
// contains filtered or unexported fields
}
MetricData is the top-level struct that is propagated through the metrics pipeline. This is the newer version of consumerdata.MetricsData, but uses more efficient in-memory representation.
This is a reference type (like builtin map).
Must use NewMetricData functions to create new instances. Important: zero-initialized instance is not valid for use.
func MetricDataFromOtlp ¶
func MetricDataFromOtlp(orig []*otlpmetrics.ResourceMetrics) MetricData
MetricDataFromOtlp creates the internal MetricData representation from the OTLP.
func (MetricData) Clone ¶
func (md MetricData) Clone() MetricData
Clone returns a copy of MetricData.
func (MetricData) MetricAndDataPointCount ¶
func (md MetricData) MetricAndDataPointCount() (metricCount int, dataPointCount int)
MetricAndDataPointCount calculates the total number of metrics and data points.
func (MetricData) MetricCount ¶
func (md MetricData) MetricCount() int
MetricCount calculates the total number of metrics.
func (MetricData) ResourceMetrics ¶
func (md MetricData) ResourceMetrics() pdata.ResourceMetricsSlice
func (MetricData) Size ¶ added in v0.7.0
func (md MetricData) Size() int
Size returns size in bytes.
Directories ¶
Path | Synopsis |
---|---|
opentelemetry-proto-gen
|
|
collector/logs/v1
Package v1 is a reverse proxy.
|
Package v1 is a reverse proxy. |
collector/metrics/v1
Package v1 is a reverse proxy.
|
Package v1 is a reverse proxy. |
collector/trace/v1
Package v1 is a reverse proxy.
|
Package v1 is a reverse proxy. |