Skip to content

Commit 15e3576

Browse files
committed
handle just exemplars, nit fixes
1 parent ebe42bf commit 15e3576

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

opentelemetry/proto/metrics/v1/metrics.proto

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,17 @@ message InstrumentationLibraryMetrics {
4848
// on how the measurement was sampled, as well as a span ID and trace ID of the
4949
// active span when the measurement was recorded
5050
message RawValue {
51-
// Numerical value of the measurement that was recorded. Only one of these
52-
// two fields is used for the data, based on MetricDescriptor.measurement_type
53-
double double_value = 1;
54-
int64 int64_value = 2;
55-
51+
// The set of labels that were dropped by the aggregator, but recorded
52+
// alongside the original measurement. Only labels that were dropped by the aggregator should be included
53+
repeated opentelemetry.proto.common.v1.StringKeyValue labels = 1;
54+
5655
// Exact time that the measurement was recorded
57-
fixed64 time_unix_nano = 3;
56+
fixed64 time_unix_nano = 2;
5857

59-
// For RawValue data points, this is the set of labels that uniquely identify this timeseries.
60-
// Only labels kept by the aggregator (and not dropped labels) should be included.
61-
// For exemplars, this is the set of labels that were dropped by the aggregator, but recorded
62-
// alongside the original measurement. Only labels that were dropped by the aggregator should be included
63-
repeated opentelemetry.proto.common.v1.StringKeyValue labels = 4;
58+
// Numerical value of the measurement that was recorded. Only one of these
59+
// two fields is used for the data, based on MetricDescriptor.measurement_value_type
60+
double double_value = 3;
61+
int64 int64_value = 4;
6462

6563
// (Optional) Span ID of the current trace
6664
bytes span_id = 5;
@@ -140,7 +138,6 @@ message Metric {
140138
repeated DoubleDataPoint double_data_points = 3;
141139
repeated HistogramDataPoint histogram_data_points = 4;
142140
repeated SummaryDataPoint summary_data_points = 5;
143-
repeated RawValue raw_data_points = 6;
144141
}
145142

146143
// Defines a metric type and its schema.

0 commit comments

Comments
 (0)