Skip to content

Commit 72cf481

Browse files
committed
chore: minor changes
1 parent 8e4d259 commit 72cf481

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/reference/edot-sdks/nodejs/configuration.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,13 @@ export OTEL_NODE_ENABLED_INSTRUMENTATIONS=http,fastify,pino,@elastic/opentelemet
175175

176176
EDOT Node.js enables the collection and export of metrics by default. If you wish to disable metrics you can by setting the environment variable `ELASTIC_OTEL_METRICS_DISABLED` to the string `true`.
177177

178-
Setting `ELASTIC_OTEL_METRICS_DISABLED=true` is similar to setting `OTEL_METRICS_EXPORTER=none`, in that it ensures no metrics are exported by the SDK. However, this setting will also disable the collection of metrics by the `@opentelemetry/host-metrics` and `@opentelemetry/instrumentation-runtime-node` packages, which can be a minor performace improvement.
178+
Setting `ELASTIC_OTEL_METRICS_DISABLED=true` is similar to setting `OTEL_METRICS_EXPORTER=none`, in that it ensures no metrics are exported by the SDK. However, this setting will also disable the collection of metrics by the `@opentelemetry/host-metrics` package, which can be a minor performace improvement.
179179

180-
This environment variable is deprecated. Same control on the metrics can be achieved by setting `OTEL_NODE_{DISABLED,ENABLED}_INSTRUMENTATIONS` for
181-
`@opentelemetry/instrumentation-runtime-node` pacakge and setting `ELASTIC_OTEL_HOST_METRICS_DISABLED` for `@opentelemetry/host-metrics`.
180+
This environment variable is deprecated since a better control of the metrics can be achieved by setting the appropiate values in
181+
`OTEL_NODE_{DISABLED,ENABLED}_INSTRUMENTATIONS` and `ELASTIC_OTEL_HOST_METRICS_DISABLED` vars.
182+
183+
- If you wish to disable collection for `@opentelemetry/host-metrics` package, set `ELASTIC_OTEL_HOST_METRICS_DISABLED` var to `false`.
184+
- If you wish to disable collection for `@opentelemetry/instrumentation-runtime-node` package, set `OTEL_NODE_{DISABLED,ENABLED}_INSTRUMENTATIONS` var to exclude that instrumentation. [(EDOT Ref)](#otel_node_disabledenabled_instrumentations-details)
182185

183186
### `ELASTIC_OTEL_HOST_METRICS_DISABLED` details [elastic_otel_host_etrics_disabled-details]
184187

0 commit comments

Comments
 (0)