Skip to content

Commit 5d5c75e

Browse files
more suggestions
1 parent ab04faf commit 5d5c75e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

gdi/get-data-in/application/nodejs/configuration/advanced-nodejs-otel-configuration.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The following settings control tracing limits and attributes:
120120
- Maximum number of links per span. Default value is ``1000``.
121121
* - OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
122122
- Not applicable
123-
- Maximum length of strings for attribute values. Values larger than the limit are truncated. Default value is ``1200``. Empty values are treated as infinity.
123+
- Maximum length of strings for attribute values. Values larger than the limit are truncated. Default value is ``12000``. Empty values are treated as infinity.
124124

125125

126126
.. _trace-sampling-settings-nodejs-3x:
@@ -137,11 +137,13 @@ The following settings control trace sampling:
137137

138138
* - Environment variable
139139
- Description
140+
- Default value
140141
* - OTEL_TRACES_SAMPLER
141142
- Sampler to use. The default value is ``parentbased_always_on``. Possible values are: ``always_on``, ``always_off``, ``parentbased_always_on``, ``parentbased_always_off``, ``traceidratio``, ``parentbased_traceidratio``. See :new-page:`Built-in samplers <https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-trace-base/README.md#built-in-samplers>` in the official OpenTelemetry documentation for more information.
142-
143+
- ``always_on``
143144
* - OTEL_TRACES_SAMPLER_ARG
144145
- Semicolon-separated list of rules for the ``rules`` sampler. For example, when setting the sampler to ``parentbased_traceidratio`` you can set the ratio using a number in the 0 to 1 range: |br| |br| ``OTEL_TRACES_SAMPLER_ARG=0.25``.
146+
- `` ``
145147

146148

147149
.. _trace-exporters-settings-nodejs-3x:

gdi/get-data-in/application/nodejs/troubleshooting/common-nodejs-troubleshooting.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ You can also activate debug logging programmatically by setting the ``logLevel``
4646
},
4747
});
4848
49-
To deactivate debug logging in your code, call ``setLogger()`` as in the following example:
50-
51-
.. code-block:: js
52-
53-
const { diag } = require('@opentelemetry/api');
54-
diag.setLogger();
55-
56-
.. note:: Activate debug logging only when needed. Debug mode requires more resources.
57-
5849
.. _enable-debug-metrics-3x:
5950

6051
Activate debug metrics

0 commit comments

Comments
 (0)