Skip to content

Commit

Permalink
Rename StartTime/EndTime to StartTimestamp/EndTimestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Feb 19, 2021
1 parent f746237 commit 5d76f9a
Show file tree
Hide file tree
Showing 40 changed files with 196 additions and 196 deletions.
8 changes: 4 additions & 4 deletions cmd/pdatagen/internal/common_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ var instrumentationLibraryField = &messageValueField{
returnMessage: instrumentationLibrary,
}

var startTimeField = &primitiveTypedField{
fieldName: "StartTime",
var startTimestampField = &primitiveTypedField{
fieldName: "StartTimestamp",
originFieldName: "StartTimeUnixNano",
returnType: "Timestamp",
rawType: "uint64",
Expand All @@ -90,8 +90,8 @@ var timeField = &primitiveTypedField{
testVal: "Timestamp(1234567890)",
}

var endTimeField = &primitiveTypedField{
fieldName: "EndTime",
var endTimestampField = &primitiveTypedField{
fieldName: "EndTimestamp",
originFieldName: "EndTimeUnixNano",
returnType: "Timestamp",
rawType: "uint64",
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 @@ -235,7 +235,7 @@ var intDataPoint = &messageValueStruct{
originFullName: "otlpmetrics.IntDataPoint",
fields: []baseField{
labelsField,
startTimeField,
startTimestampField,
timeField,
valueInt64Field,
intExemplarsField,
Expand All @@ -253,7 +253,7 @@ var doubleDataPoint = &messageValueStruct{
originFullName: "otlpmetrics.DoubleDataPoint",
fields: []baseField{
labelsField,
startTimeField,
startTimestampField,
timeField,
valueFloat64Field,
doubleExemplarsField,
Expand All @@ -271,7 +271,7 @@ var intHistogramDataPoint = &messageValueStruct{
originFullName: "otlpmetrics.IntHistogramDataPoint",
fields: []baseField{
labelsField,
startTimeField,
startTimestampField,
timeField,
countField,
intSumField,
Expand All @@ -292,7 +292,7 @@ var doubleHistogramDataPoint = &messageValueStruct{
originFullName: "otlpmetrics.DoubleHistogramDataPoint",
fields: []baseField{
labelsField,
startTimeField,
startTimestampField,
timeField,
countField,
doubleSumField,
Expand All @@ -313,7 +313,7 @@ var doubleSummaryDataPoint = &messageValueStruct{
originFullName: "otlpmetrics.DoubleSummaryDataPoint",
fields: []baseField{
labelsField,
startTimeField,
startTimestampField,
timeField,
countField,
doubleSumField,
Expand Down
4 changes: 2 additions & 2 deletions cmd/pdatagen/internal/trace_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ var span = &messageValueStruct{
defaultVal: "SpanKindUNSPECIFIED",
testVal: "SpanKindSERVER",
},
startTimeField,
endTimeField,
startTimestampField,
endTimestampField,
attributes,
droppedAttributesCount,
&sliceField{
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.

Loading

0 comments on commit 5d76f9a

Please sign in to comment.