Documentation ¶
Index ¶
- Constants
- type AggregationTemporality
- type AnyValue
- type ArrayValue
- type ExportMetricsServiceRequest
- type Gauge
- type Histogram
- type HistogramDataPoint
- type KeyValue
- type KeyValueList
- type Metric
- type NumberDataPoint
- type Resource
- type ResourceMetrics
- type ScopeMetrics
- type Sum
- type Summary
- type SummaryDataPoint
- type ValueAtQuantile
Constants ¶
const ( // AggregationTemporalityUnspecified is enum value for AggregationTemporality AggregationTemporalityUnspecified = AggregationTemporality(0) // AggregationTemporalityDelta is enum value for AggregationTemporality AggregationTemporalityDelta = AggregationTemporality(1) // AggregationTemporalityCumulative is enum value for AggregationTemporality AggregationTemporalityCumulative = AggregationTemporality(2) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationTemporality ¶
type AggregationTemporality int
AggregationTemporality represents the corresponding OTEL protobuf enum
type AnyValue ¶
type AnyValue struct { StringValue *string BoolValue *bool IntValue *int64 DoubleValue *float64 ArrayValue *ArrayValue KeyValueList *KeyValueList BytesValue *[]byte }
AnyValue represents the corresponding OTEL protobuf message
func (*AnyValue) FormatString ¶
FormatString returns string reperesentation for av.
type ArrayValue ¶
type ArrayValue struct {
Values []*AnyValue
}
ArrayValue represents the corresponding OTEL protobuf message
type ExportMetricsServiceRequest ¶
type ExportMetricsServiceRequest struct {
ResourceMetrics []*ResourceMetrics
}
ExportMetricsServiceRequest represents the corresponding OTEL protobuf message
func (*ExportMetricsServiceRequest) MarshalProtobuf ¶ added in v1.97.0
func (r *ExportMetricsServiceRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf marshals r to protobuf message, appends it to dst and returns the result.
func (*ExportMetricsServiceRequest) UnmarshalProtobuf ¶ added in v1.97.0
func (r *ExportMetricsServiceRequest) UnmarshalProtobuf(src []byte) error
UnmarshalProtobuf unmarshals r from protobuf message at src.
type Gauge ¶
type Gauge struct {
DataPoints []*NumberDataPoint
}
Gauge represents the corresponding OTEL protobuf message
type Histogram ¶
type Histogram struct { DataPoints []*HistogramDataPoint AggregationTemporality AggregationTemporality }
Histogram represents the corresponding OTEL protobuf message
type HistogramDataPoint ¶
type HistogramDataPoint struct { Attributes []*KeyValue TimeUnixNano uint64 Count uint64 Sum *float64 BucketCounts []uint64 ExplicitBounds []float64 Flags uint32 }
HistogramDataPoint represents the corresponding OTEL protobuf message
type KeyValueList ¶
type KeyValueList struct {
Values []*KeyValue
}
KeyValueList represents the corresponding OTEL protobuf message
type NumberDataPoint ¶
type NumberDataPoint struct { Attributes []*KeyValue TimeUnixNano uint64 DoubleValue *float64 IntValue *int64 Flags uint32 }
NumberDataPoint represents the corresponding OTEL protobuf message
type Resource ¶
type Resource struct {
Attributes []*KeyValue
}
Resource represents the corresponding OTEL protobuf message
type ResourceMetrics ¶
type ResourceMetrics struct { Resource *Resource ScopeMetrics []*ScopeMetrics }
ResourceMetrics represents the corresponding OTEL protobuf message
type ScopeMetrics ¶
type ScopeMetrics struct {
Metrics []*Metric
}
ScopeMetrics represents the corresponding OTEL protobuf message
type Sum ¶
type Sum struct { DataPoints []*NumberDataPoint AggregationTemporality AggregationTemporality }
Sum represents the corresponding OTEL protobuf message
type Summary ¶
type Summary struct {
DataPoints []*SummaryDataPoint
}
Summary represents the corresponding OTEL protobuf message
type SummaryDataPoint ¶
type SummaryDataPoint struct { Attributes []*KeyValue TimeUnixNano uint64 Count uint64 Sum float64 QuantileValues []*ValueAtQuantile Flags uint32 }
SummaryDataPoint represents the corresponding OTEL protobuf message
type ValueAtQuantile ¶ added in v1.97.0
ValueAtQuantile represents the corresponding OTEL protobuf message