
In January, the Node.js instrumentation in the Dash0 operator moves to the stable OpenTelemetry semantic conventions for HTTP and databases. Node.js services will then report HTTP and database telemetry with the same names and units as services in other languages that follow the stable conventions, such as Java and Go.
Until then, we are pausing updates to the Node.js instrumentation in the operator so you have time to prepare. The first operator release after the pause brings the change to your workloads.
The biggest change is that HTTP request durations switch from milliseconds to seconds, so latency values become 1000 times smaller. Some attribute names change too.
Dashboards, check rules, SLOs and views that you created and that use this telemetry may need updating. This post explains what changes, how to find what is affected, and how to prepare.
You do not need to wait for the release to take action: you can put every option below in place today.
What changes
HTTP request duration is reported in seconds instead of milliseconds
Node.js reports HTTP latency in milliseconds today. After the update, it reports http.server.request.duration and http.client.request.duration in seconds, as the stable conventions require.
The metric name you see in Dash0 today depends on whether semantic convention upgrades are turned on for the dataset. This opt-in dataset setting renames older metrics and attributes to their stable names on ingest. It renames the duration metrics but keeps their unit, so with upgrades on, only the unit changes.
| Before | After | |
|---|---|---|
| Metric name, upgrades on | http.server.request.duration | http.server.request.duration |
| Metric name, upgrades off | http.server.duration | http.server.request.duration |
| Unit | milliseconds (ms) | seconds (s) |
| A p95 of half a second | 500 | 0.5 |
| Histogram bucket boundaries | 0, 5, 10, 25, 50, …, 10000 | 0.005, 0.01, 0.025, 0.05, …, 10 |
| Prometheus-style name, upgrades on | http_server_request_duration_milliseconds_bucket | http_server_request_duration_seconds_bucket |
| Prometheus-style name, upgrades off | http_server_duration_milliseconds_bucket | http_server_request_duration_seconds_bucket |
The client metric changes the same way, with client in place of server. The Prometheus-style _count and _sum series change like _bucket.
The unit change is the one most likely to need attention. Latency charts show a step at the moment each workload picks up the new version, and an unadjusted latency check stops firing, because every value is now far below its threshold.
Dash0 RED metrics are unaffected, because they are based on spans. Dash0's HTTP latency SLO presets already expect these metrics in seconds. Only dashboards, check rules, SLOs and other assets that you create yourself may need changes.
What a query needs depends on how it selects the metric:
- By
otel_metric_name, upgrades on: The query keeps returning data, but the values become 1000 times smaller. Divide by 1000 every threshold that reads latency values: percentiles, averages, Apdex targets, histogram bucket filters and latency alert thresholds. Queries that only count requests, such as request rate and error rate, are not affected. - By
otel_metric_name, upgrades off: Queries on the old metric name stop returning new data. Switch them to the new name and the new thresholds. - By Prometheus-style name: The query stops returning new data whether upgrades are on or off, because the unit is part of the name. This includes queries that only count requests with
_count.
For example, a check on p95 latency changes from:
histogram_quantile(0.95, sum(rate({otel_metric_name="http.server.request.duration", service_name="checkout"}[5m]))) > 500to:
histogram_quantile(0.95, sum(rate({otel_metric_name="http.server.request.duration", service_name="checkout"}[5m]))) > 0.5A query that reads a single bucket, here the share of requests that finish within half a second, changes both its metric name and its le value:
sum(rate(http_server_request_duration_milliseconds_bucket{le="500"}[5m]))
/ sum(rate(http_server_request_duration_milliseconds_count[5m]))becomes:
sum(rate(http_server_request_duration_seconds_bucket{le="0.5"}[5m]))
/ sum(rate(http_server_request_duration_seconds_count[5m]))Every old bucket boundary from 5 to 10000 milliseconds has a matching boundary in seconds, so le="250" becomes le="0.25", and so on.
Network peer attributes on spans are renamed
| Before | After |
|---|---|
net.peer.name | server.address |
net.peer.port | server.port |
net.peer.ip, net.sock.peer.addr | network.peer.address |
net.sock.peer.port | network.peer.port |
Filters, views, spam filters and queries that use the old names stop matching new data.
The Node.js heap limit metric is replaced
v8js.memory.heap.limit is no longer reported. Use v8js.memory.heap.space.size instead, which reports the same value per heap space. The other v8js.memory.heap.* metrics are unchanged.
Other HTTP and database attribute names, if semantic convention upgrades are off
With semantic convention upgrades turned on, Dash0 already translates older HTTP and database attribute names to the stable ones on ingest, so you see no change here. In a dataset with upgrades turned off, these renames become visible:
| Before | After |
|---|---|
http.method | http.request.method |
http.status_code | http.response.status_code |
http.target | url.path |
http.url | url.full |
db.system | db.system.name |
db.statement | db.query.text |
db.name | db.namespace |
Find what is affected
The quickest way is to ask Agent0, for example with this prompt:
Node.js services in this dataset are moving to the stable OpenTelemetry semantic conventions. HTTP request durations change from milliseconds to seconds:
http.server.request.durationandhttp.client.request.durationkeep their names, but their values become 1000 times smaller, and their Prometheus-style names change from_milliseconds_to_seconds_(for example,http_server_request_duration_milliseconds_bucketbecomeshttp_server_request_duration_seconds_bucket, andle="500"becomesle="0.5"). Attributes starting withnet.peer.andnet.sock.are renamed toserver.address,server.port,network.peer.addressandnetwork.peer.port, andv8js.memory.heap.limitis replaced byv8js.memory.heap.space.size.Find every dashboard, check rule, SLO, recording rule, view and spam filter in this dataset that uses any of these names, or
http.server.durationorhttp.client.duration. For each one, list the exact queries, filters and thresholds that need to change, and what to change them to.
Agent0 reliably finds the affected assets. Check its suggested changes against the tables above before you apply them.
To check every dataset from the command line, use this script. It calls the Dash0 CLI and prints each asset that mentions one of the changed names, together with the names it uses:
#!/usr/bin/env bash
# Lists Dash0 assets that use metrics or attributes changed by the Node.js
# move to stable semantic conventions. Needs a logged-in Dash0 CLI and jq.
# Pass dataset slugs as arguments, or none to check every dataset.
set -euo pipefail
pattern='http[._](server|client)[._](request[._])?duration|net[._](peer|sock)[._]|v8js[._]memory[._]heap[._]limit'
if [ "$#" -gt 0 ]; then
datasets=("$@")
else
datasets=($(dash0 --experimental datasets list -o csv --skip-header | cut -d, -f2))
fi
for dataset in "${datasets[@]}"; do
for type in dashboards check-rules slos recording-rules views spam-filters synthetic-checks; do
dash0 "$type" list --dataset "$dataset" --all -o json |
jq -r --arg p "$pattern" --arg d "$dataset" --arg t "$type" '
.[] | select(tostring | test($p)) |
[$d, $t,
(.spec.display.name // .metadata.annotations["dash0.com/display-name"] // .metadata.name // .name // "?"),
([tostring | match($p; "g").string] | unique | join(" "))]
| @tsv'
done
doneWhichever you use, look for:
http.server.request.durationorhttp.client.request.durationused for latency: quantiles, averages, Apdex or bucket (le) filters.- Any query that uses the Prometheus-style names ending in
_milliseconds_bucket,_milliseconds_countor_milliseconds_sum. - Any attribute starting with
net.peer.ornet.sock.. v8js.memory.heap.limit.- In datasets with semantic convention upgrades off, the older names in the tables above.
If you manage these assets as code (with the operator, Terraform or the API), make the changes at the source.
Also check ad-hoc queries, saved links and any tooling outside Dash0 that reads this data.
How to prepare
For most teams, option 1 is the simplest. You can also combine the options.
Option 1: Switch early, on your own schedule
Set this environment variable on your Node.js workloads:
OTEL_SEMCONV_STABILITY_OPT_IN=http,databaseFor example, in a Deployment:
spec:
template:
spec:
containers:
- name: my-app
env:
- name: OTEL_SEMCONV_STABILITY_OPT_IN
value: "http,database"The instrumentation then sends HTTP and database telemetry in the new form right away, so you can update dashboards and checks when it suits you rather than on release day. When the operator release arrives, nothing further changes for HTTP and database telemetry.
A few things to keep in mind:
- Use exactly
http,database, nothttp/dup. Withhttp/dup, the instrumentation sends both the old and the new duration metric, and in Dash0 both end up under the same name, one in milliseconds and one in seconds. - Switch all Node.js workloads that report into the same dataset together. Until they have all switched, the dataset contains the duration metric in both milliseconds and seconds. To keep them apart in the meantime, filter on
otel_metric_unit="ms"orotel_metric_unit="s". - The heap limit change cannot be switched early. Update heap limit panels and checks when the release arrives.
Option 2: Stay on your current version for now
Each Dash0 operator release ships a fixed version of the Node.js instrumentation, so the change only reaches your workloads when you upgrade the operator Helm chart. If you need more time, keep your current chart version, for example by pinning --version in your helm upgrade command or in your GitOps configuration.
Treat this as temporary. On an older operator, you also miss other fixes and improvements.
Option 3: Keep HTTP durations in milliseconds
If you would rather keep milliseconds, a transform rule in SignalControl can convert the values as Dash0 ingests them, wherever the telemetry comes from:
- In SignalControl, open the Transform stage for Metrics and click Add transform rule.
- Click Write OTTL and add this statement:
scale_metric(1000.0, "ms") where metric.unit == "s" and (metric.name == "http.server.request.duration" or metric.name == "http.client.request.duration")- Check the result in the Output panel, then save the rule. The rule takes effect within a few minutes.
Add the rule to every dataset that receives Node.js telemetry. You can add it now: it only changes data that arrives in seconds, so it has no effect until your workloads switch.
Some caveats:
- It only converts the unit. The attribute changes above still apply.
- Seconds are the OpenTelemetry standard unit, so millisecond data does not match services written in other languages or Dash0's HTTP latency SLO presets, which expect seconds. We recommend the rule only as a temporary measure.
- It does not support exponential histograms. If you have set
OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=base2_exponential_bucket_histogram, contact Dash0 support.
To convert the values in your cluster instead, add the same statement as a transform to your Dash0 monitoring resource (per namespace) or to the operator configuration resource (whole cluster):
spec:
transform:
metric_statements:
- 'scale_metric(1000.0, "ms") where metric.unit == "s" and (metric.name == "http.server.request.duration" or metric.name == "http.client.request.duration")'This only applies to telemetry that passes through the operator's collectors.
Not using the operator?
If you add @dash0/opentelemetry to your application yourself, the changes ship in version 6.0.0 of the package, which is available now. Versions 5.x and earlier keep the current behavior. The package and the operator are released separately, so the package change does not wait for the operator release in January.
The same options apply:
- Option 1: Set the variable on your current version, update your dashboards and checks, then upgrade to 6.0.0.
- Option 2: Stay on 5.x or earlier. Version 6.0.0 is a major release, so a
^5.0.0range does not pick it up, but make sure automated dependency updates do not upgrade you before you are ready. - Option 3: Use the same SignalControl rule, or run the same
scale_metricstatement in atransformprocessor in your own OpenTelemetry Collector.
Questions
If you have questions or want help finding what is affected in your organization, contact Dash0 support.

