Skip to content

Commit

Permalink
Merge branch 'main' into componenthelper
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdandrutu authored Mar 24, 2021
2 parents dd92465 + b78ff24 commit 7d908f7
Show file tree
Hide file tree
Showing 29 changed files with 428 additions and 201 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## 🛑 Breaking changes 🛑

- Rename pdata.DoubleSummary to pdata.Summary (#2774)
- Refactor `consumererror` package (#2768)
- Remove `PartialError` type in favor of signal-specific types
- Rename `CombineErrors()` to `Combine()`
Expand All @@ -21,6 +22,9 @@
- Remove ValidateConfig and add Validate on the Config struct (#2665)
- Rename pdata Size to OtlpProtoSize (#2726)
- Rename [Traces|Metrics|Logs]Consumer to [Traces|Metrics|Logs] (#2761)
- Remove public access for `componenttest.Example*` components:
- Users of these structs for testing configs should use the newly added `componenttest.Nop*` (update all components name in the config `example*` -> `nop` and use `componenttest.NopComponents()`).
- Users of these structs for sink like behavior should use `consumertest.*Sink`.

## 💡 Enhancements 💡

Expand Down
10 changes: 5 additions & 5 deletions cmd/pdatagen/internal/metrics_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ var doubleHistogram = &messageValueStruct{
}

var doubleSummary = &messageValueStruct{
structName: "DoubleSummary",
description: "// DoubleSummary represents the type of a metric that is calculated by aggregating as a Summary of all reported double measurements over a time interval.",
structName: "Summary",
description: "// Summary represents the type of a metric that is calculated by aggregating as a Summary of all reported double measurements over a time interval.",
originFullName: "otlpmetrics.DoubleSummary",
fields: []baseField{
&sliceField{
Expand Down Expand Up @@ -303,13 +303,13 @@ var doubleHistogramDataPoint = &messageValueStruct{
}

var doubleSummaryDataPointSlice = &sliceOfPtrs{
structName: "DoubleSummaryDataPointSlice",
structName: "SummaryDataPointSlice",
element: doubleSummaryDataPoint,
}

var doubleSummaryDataPoint = &messageValueStruct{
structName: "DoubleSummaryDataPoint",
description: "// DoubleSummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary of double values.",
structName: "SummaryDataPoint",
description: "// SummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary of double values.",
originFullName: "otlpmetrics.DoubleSummaryDataPoint",
fields: []baseField{
labelsField,
Expand Down
126 changes: 63 additions & 63 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 7d908f7

Please sign in to comment.