Skip to content

Commit

Permalink
Remove usage of deprecated pdata types (open-telemetry#13334)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Aug 16, 2022
1 parent 038c562 commit 8c173f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/telemetryquerylanguage/contexts/tqlmetrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,14 @@ func accessFlags() tql.StandardGetSetter {
}
}

func flagsValue(flags pmetric.MetricDataPointFlagsStruct) int64 {
func flagsValue(flags pmetric.MetricDataPointFlags) int64 {
if flags.NoRecordedValue() {
return 1
}
return 0
}

func setFlagsValue(flags pmetric.MetricDataPointFlagsStruct, value int64) {
func setFlagsValue(flags pmetric.MetricDataPointFlags, value int64) {
if value&1 != 0 {
flags.SetNoRecordedValue(true)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func groupExponentialHistogramDataPoints(dps pmetric.ExponentialHistogramDataPoi
}
}

func flagsValue(flags pmetric.MetricDataPointFlagsStruct) uint32 {
func flagsValue(flags pmetric.MetricDataPointFlags) uint32 {
if flags.NoRecordedValue() {
return uint32(1)
}
Expand Down

0 comments on commit 8c173f6

Please sign in to comment.