Skip to content

Commit

Permalink
Clarify process.runtime.jvm.threads.count refers to platform threads (
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored May 31, 2023
1 parent eacb63d commit 62513fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ release.
([#3458](https://github.com/open-telemetry/opentelemetry-specification/pull/3458))
- Specify the value range for JVM CPU metrics.
([#13](https://github.com/open-telemetry/semantic-conventions/pull/13))
- Clarify `process.runtime.jvm.threads.count` refers to platform threads.
([#54](https://github.com/open-telemetry/semantic-conventions/pull/54))
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ groups:
- id: metric.process.runtime.jvm.threads.count
type: metric
metric_name: process.runtime.jvm.threads.count
brief: "Number of executing threads."
brief: "Number of executing platform threads."
instrument: updowncounter
unit: "{thread}"
attributes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,12 @@ of `[]` (single bucket histogram capturing count, sum, min, max).
This metric is [recommended][MetricRecommended].
This metric is obtained from [`ThreadMXBean#getDaemonThreadCount()`](https://docs.oracle.com/javase/8/docs/api/java/lang/management/ThreadMXBean.html#getDaemonThreadCount--) and
[`ThreadMXBean#getThreadCount()`](https://docs.oracle.com/javase/8/docs/api/java/lang/management/ThreadMXBean.html#getThreadCount--).
Note that this is the number of platform threads (as opposed to virtual threads).

<!-- semconv metric.process.runtime.jvm.threads.count(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description |
| -------- | --------------- | ----------- | -------------- |
| `process.runtime.jvm.threads.count` | UpDownCounter | `{thread}` | Number of executing threads. |
| `process.runtime.jvm.threads.count` | UpDownCounter | `{thread}` | Number of executing platform threads. |
<!-- endsemconv -->

<!-- semconv metric.process.runtime.jvm.threads.count(full) -->
Expand Down

0 comments on commit 62513fb

Please sign in to comment.