Skip to content

Commit be28c6b

Browse files
authored
Wrap Float64ObservableCounter with system.CPUTime (#7235)
Fix #7234 Addresses revert of [`cpu` to `system` namespace](open-telemetry/semantic-conventions#1896) in semantic conventions.
1 parent 712e373 commit be28c6b

File tree

2 files changed

+9
-33
lines changed

2 files changed

+9
-33
lines changed

semconv/templates/registry/go/weaver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ text_maps:
6969
boolean: bool
7070
boolean[]: "...bool"
7171
instrument:
72-
cpu.time: Float64ObservableCounter
72+
system.cpu.time: Float64ObservableCounter
7373
go.config.gogc: Int64ObservableUpDownCounter
7474
go.goroutine.count: Int64ObservableUpDownCounter
7575
go.memory.allocated: Int64ObservableCounter

semconv/v1.36.0/systemconv/metric.go

Lines changed: 8 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)