Skip to content

Commit

Permalink
Rename [Start|End]Time to [Start|End]Timestamp in pdata (open-telemet…
Browse files Browse the repository at this point in the history
…ry#2847)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored and pjanotti committed Apr 6, 2021
1 parent 2e8ebed commit aa04e81
Show file tree
Hide file tree
Showing 42 changed files with 195 additions and 194 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.*.[Start|End]Time to pdata.*.[Start|End]Timestamp (#2847)
- Rename pdata.DoubleExemplar to pdata.Exemplar (#2804)
- Rename pdata.DoubleHistogram to pdata.Histogram (#2797)
- Rename pdata.DoubleSummary to pdata.Summary (#2774)
Expand Down
4 changes: 2 additions & 2 deletions cmd/pdatagen/internal/common_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var instrumentationLibraryField = &messageValueField{
}

var startTimeField = &primitiveTypedField{
fieldName: "StartTime",
fieldName: "StartTimestamp",
originFieldName: "StartTimeUnixNano",
returnType: "Timestamp",
rawType: "uint64",
Expand All @@ -91,7 +91,7 @@ var timeField = &primitiveTypedField{
}

var endTimeField = &primitiveTypedField{
fieldName: "EndTime",
fieldName: "EndTimestamp",
originFieldName: "EndTimeUnixNano",
returnType: "Timestamp",
rawType: "uint64",
Expand Down
50 changes: 25 additions & 25 deletions consumer/pdata/generated_metrics.go

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

60 changes: 30 additions & 30 deletions consumer/pdata/generated_metrics_test.go

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

20 changes: 10 additions & 10 deletions consumer/pdata/generated_trace.go

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

24 changes: 12 additions & 12 deletions consumer/pdata/generated_trace_test.go

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

Loading

0 comments on commit aa04e81

Please sign in to comment.