Clarify `process.runtime.jvm.threads.count` refers to platform threads (#54)

This commit is contained in:
Trask Stalnaker 2023-05-31 07:12:03 -07:00 committed by GitHub
parent eacb63da11
commit 62513fbc50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -66,3 +66,5 @@ release.
([#3458](https://github.com/open-telemetry/opentelemetry-specification/pull/3458)) ([#3458](https://github.com/open-telemetry/opentelemetry-specification/pull/3458))
- Specify the value range for JVM CPU metrics. - Specify the value range for JVM CPU metrics.
([#13](https://github.com/open-telemetry/semantic-conventions/pull/13)) ([#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))

View File

@ -92,7 +92,7 @@ groups:
- id: metric.process.runtime.jvm.threads.count - id: metric.process.runtime.jvm.threads.count
type: metric type: metric
metric_name: process.runtime.jvm.threads.count metric_name: process.runtime.jvm.threads.count
brief: "Number of executing threads." brief: "Number of executing platform threads."
instrument: updowncounter instrument: updowncounter
unit: "{thread}" unit: "{thread}"
attributes: attributes:

View File

@ -242,11 +242,12 @@ of `[]` (single bucket histogram capturing count, sum, min, max).
This metric is [recommended][MetricRecommended]. 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 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--). [`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) --> <!-- semconv metric.process.runtime.jvm.threads.count(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description | | 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 --> <!-- endsemconv -->
<!-- semconv metric.process.runtime.jvm.threads.count(full) --> <!-- semconv metric.process.runtime.jvm.threads.count(full) -->