Skip to content

Commit dbd3c6f

Browse files
Implement Summary point value type in Otel/STEF (#116)
Resolves #5 Implements support for Otel's Summary data point type: https://github.com/open-telemetry/opentelemetry-proto/blob/6deb067376dc017240f940c252b8b116fd3becf1/opentelemetry/proto/metrics/v1/metrics.proto#L208
1 parent c1f90b3 commit dbd3c6f

37 files changed

+3614
-13
lines changed
-18.8 KB
Binary file not shown.
-676 Bytes
Binary file not shown.
2.95 KB
Binary file not shown.

go/otel/otel.stef

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ oneof PointValue {
5757
Float64 float64
5858
Histogram HistogramValue
5959
ExpHistogram ExpHistogramValue
60-
// TODO: Add Summary value support.
60+
Summary SummaryValue
6161
}
6262

6363
struct Metric dict(Metric) {
@@ -130,6 +130,17 @@ struct ExpHistogramBuckets {
130130
BucketCounts []uint64
131131
}
132132

133+
struct SummaryValue {
134+
Count uint64
135+
Sum float64
136+
QuantileValues []QuantileValue
137+
}
138+
139+
struct QuantileValue {
140+
Quantile float64
141+
Value float64
142+
}
143+
133144
oneof AnyValue {
134145
String string dict(AnyValueString)
135146
Bool bool

go/otel/oteltef/metrics.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/otel/oteltef/pointvalue.go

Lines changed: 106 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)