Skip to content

Commit

Permalink
add _libuv to active request metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
maryliag committed May 2, 2024
1 parent de39000 commit 50b741f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docs/runtime/nodejs-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This document describes semantic conventions for Node.js metrics in OpenTelemetr

- [Experimental](#experimental)
- [Metric: `nodejs.active_handles.count`](#metric-nodejsactive_handlescount)
- [Metric: `nodejs.active_requests.count`](#metric-nodejsactive_requestscount)
- [Metric: `nodejs.active_libuv_requests.count`](#metric-nodejsactive_requestscount)
- [Metric: `nodejs.eventloop.lag`](#metric-nodejseventlooplag)
- [Metric: `nodejs.gc.duration`](#metric-nodejsgcduration)
- [Metric: `nodejs.memory.size`](#metric-nodejsmemorysize)
Expand Down Expand Up @@ -43,17 +43,17 @@ This metric is [recommended][MetricRecommended].
| [`nodejs.version`](/docs/attributes-registry/nodejs.md) | string | Node.js version. | `v22.0.0`; `v21.7.3` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

### Metric: `nodejs.active_requests.count`
### Metric: `nodejs.active_libuv_requests.count`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.nodejs.active_requests.count(metric_table) -->
<!-- semconv metric.nodejs.active_libuv_requests.count(metric_table) -->
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `nodejs.active_requests.count` | UpDownCounter | `{requests}` | Number of active requests. | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `nodejs.active_libuv_requests.count` | UpDownCounter | `{requests}` | Number of active libuv requests. | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

<!-- semconv metric.nodejs.active_requests.count(full) -->
<!-- semconv metric.nodejs.active_libuv_requests.count(full) -->
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|---|---|---|---|---|---|
| [`nodejs.version`](/docs/attributes-registry/nodejs.md) | string | Node.js version. | `v22.0.0`; `v21.7.3` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down
6 changes: 3 additions & 3 deletions model/metrics/nodejs-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ groups:
- ref: nodejs.version
requirement_level: recommended

- id: metric.nodejs.active_requests.count
- id: metric.nodejs.active_libuv_requests.count
type: metric
metric_name: nodejs.active_requests.count
brief: "Number of active requests."
metric_name: nodejs.active_libuv_requests.count
brief: "Number of active libuv requests."
instrument: updowncounter
unit: "{requests}"
stability: experimental
Expand Down

0 comments on commit 50b741f

Please sign in to comment.