Skip to content

Commit

Permalink
change the unit for go.processor.limit to {thread}
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed May 21, 2024
1 parent 65fca8d commit 7ecfa39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/runtime/go-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ This metric is [recommended][MetricRecommended].
<!-- semconv metric.go.processor.limit(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `go.processor.limit` | UpDownCounter | `{processor}` | The number of OS threads that can execute user-level Go code simultaneously. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `go.processor.limit` | UpDownCounter | `{thread}` | The number of OS threads that can execute user-level Go code simultaneously. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** Computed from `/sched/gomaxprocs:threads`.
<!-- endsemconv -->
Expand Down
2 changes: 1 addition & 1 deletion model/metrics/go-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ groups:
note: >
Computed from `/sched/gomaxprocs:threads`.
instrument: updowncounter
unit: "{processor}"
unit: "{thread}"
stability: experimental

- id: metric.go.schedule.duration
Expand Down

0 comments on commit 7ecfa39

Please sign in to comment.