Skip to content

Commit

Permalink
Fix unit on dotnet.thread_pool.queue.length
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Aug 5, 2024
1 parent 5d63a8f commit a4ad895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/runtime/dotnet-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.thread_pool.queue.length` | UpDownCounter | `{queue}` | The number of work items that are currently queued to be processed by the thread pool. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `dotnet.thread_pool.queue.length` | UpDownCounter | `{work_item}` | The number of work items that are currently queued to be processed by the thread pool. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** This metric reports the same values as calling [`ThreadPool.PendingWorkItemCount`](https://learn.microsoft.com/dotnet/api/system.threading.threadpool.pendingworkitemcount).
Expand Down
2 changes: 1 addition & 1 deletion model/metrics/dotnet-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ groups:
thread pool.
note: "This metric reports the same values as calling [`ThreadPool.PendingWorkItemCount`](https://learn.microsoft.com/dotnet/api/system.threading.threadpool.pendingworkitemcount)."
instrument: updowncounter
unit: "{queue}"
unit: "{work_item}"
stability: experimental

- id: metric.dotnet.timer.count
Expand Down

0 comments on commit a4ad895

Please sign in to comment.