Skip to content

Commit

Permalink
JVM gc duration unit and bucket boundaries (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg committed May 3, 2023
1 parent abf540c commit 88e0e7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ release.

- Add experimental histogram advice API.
([#3216](https://github.com/open-telemetry/opentelemetry-specification/pull/3216))
- Specify second unit (`s`) and advice bucket boundaries of `[]`
for `process.runtime.jvm.gc.duration`.
([#3458](https://github.com/open-telemetry/opentelemetry-specification/pull/3458))

### Logs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ groups:
metric_name: process.runtime.jvm.gc.duration
brief: "Duration of JVM garbage collection actions."
instrument: histogram
unit: "ms"
unit: "s"
attributes:
- id: gc
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ This metric is [recommended](../metric-requirement-level.md#recommended).

This metric is [recommended](../metric-requirement-level.md#recommended).

This metric SHOULD be specified with
[`ExplicitBucketBoundaries`](../../metrics/api.md#instrument-advice)
of `[]` (single bucket histogram capturing count, sum, min, max).

<!-- semconv metric.process.runtime.jvm.gc.duration(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description |
| -------- | --------------- | ----------- | -------------- |
| `process.runtime.jvm.gc.duration` | Histogram | `ms` | Duration of JVM garbage collection actions. |
| `process.runtime.jvm.gc.duration` | Histogram | `s` | Duration of JVM garbage collection actions. |
<!-- endsemconv -->

<!-- semconv metric.process.runtime.jvm.gc.duration(full) -->
Expand Down

0 comments on commit 88e0e7e

Please sign in to comment.