Skip to content

Commit

Permalink
Rename DoubleExemplar to Exemplar, preparation for proto upgdate to v…
Browse files Browse the repository at this point in the history
…0.8.0 (open-telemetry#2804)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Mar 25, 2021
1 parent 06ea2c6 commit 525e2cf
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 121 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## 🛑 Breaking changes 🛑

- Rename pdata.DoubleExemplar to pdata.Exemplar (#2804)
- Rename pdata.DoubleHistogram to pdata.Histogram (#2797)
- Rename pdata.DoubleSummary to pdata.Summary (#2774)
- Refactor `consumererror` package (#2768)
Expand Down
24 changes: 12 additions & 12 deletions cmd/pdatagen/internal/metrics_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ var metricsFile = &File{
quantileValues,
intExemplarSlice,
intExemplar,
doubleExemplarSlice,
doubleExemplar,
exemplarSlice,
exemplar,
},
}

Expand Down Expand Up @@ -256,7 +256,7 @@ var doubleDataPoint = &messageValueStruct{
startTimeField,
timeField,
valueFloat64Field,
doubleExemplarsField,
exemplarsField,
},
}

Expand Down Expand Up @@ -298,7 +298,7 @@ var histogramDataPoint = &messageValueStruct{
doubleSumField,
bucketCountsField,
explicitBoundsField,
doubleExemplarsField,
exemplarsField,
},
}

Expand Down Expand Up @@ -363,14 +363,14 @@ var intExemplar = &messageValueStruct{
},
}

var doubleExemplarSlice = &sliceOfValues{
structName: "DoubleExemplarSlice",
element: doubleExemplar,
var exemplarSlice = &sliceOfValues{
structName: "ExemplarSlice",
element: exemplar,
}

var doubleExemplar = &messageValueStruct{
structName: "DoubleExemplar",
description: "// DoubleExemplar is a sample input double measurement.\n//\n" +
var exemplar = &messageValueStruct{
structName: "Exemplar",
description: "// Exemplar is a sample input double measurement.\n//\n" +
"// Exemplars also hold information about the environment when the measurement was recorded,\n" +
"// for example the span and trace ID of the active span when the exemplar was recorded.",

Expand Down Expand Up @@ -398,10 +398,10 @@ var intExemplarsField = &sliceField{
returnSlice: intExemplarSlice,
}

var doubleExemplarsField = &sliceField{
var exemplarsField = &sliceField{
fieldName: "Exemplars",
originFieldName: "Exemplars",
returnSlice: doubleExemplarSlice,
returnSlice: exemplarSlice,
}

var countField = &primitiveField{
Expand Down
88 changes: 44 additions & 44 deletions consumer/pdata/generated_metrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 525e2cf

Please sign in to comment.