File tree 2 files changed +18
-1
lines changed
content/en/docs/languages/js/automatic
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,23 @@ Alternatively, you can use `export` to set environment variables:
38
38
39
39
``` shell
40
40
export OTEL_TRACES_EXPORTER=" otlp"
41
- export OTEL_METRICS_EXPORTER=" otlp"
42
41
export OTEL_EXPORTER_OTLP_ENDPOINT=" your-endpoint"
43
42
export OTEL_NODE_RESOURCE_DETECTORS=" env,host,os"
44
43
export OTEL_SERVICE_NAME=" your-service-name"
45
44
export NODE_OPTIONS=" --require @opentelemetry/auto-instrumentations-node/register"
46
45
node app.js
47
46
```
48
47
48
+ {{% alert title="Note" color="info" %}}
49
+
50
+ Currently, only Traces are supported for environment variable configuration. See
51
+ the open issues for
52
+ [ Metrics] ( https://github.com/open-telemetry/opentelemetry-js/issues/4551 ) and
53
+ [ Logs] ( https://github.com/open-telemetry/opentelemetry-js/issues/4552 ) to learn
54
+ more.
55
+
56
+ {{% /alert %}}
57
+
49
58
By default, all SDK [ resource detectors] ( /docs/languages/js/resources/ ) are
50
59
used. You can use the environment variable ` OTEL_NODE_RESOURCE_DETECTORS ` to
51
60
enable only certain detectors, or to completely disable them.
Original file line number Diff line number Diff line change 3519
3519
"StatusCode" : 200 ,
3520
3520
"LastSeen" : " 2024-01-18T20:05:19.47948-05:00"
3521
3521
},
3522
+ "https://github.com/open-telemetry/opentelemetry-js/issues/4551" : {
3523
+ "StatusCode" : 200 ,
3524
+ "LastSeen" : " 2024-03-19T06:37:03.56499722Z"
3525
+ },
3526
+ "https://github.com/open-telemetry/opentelemetry-js/issues/4552" : {
3527
+ "StatusCode" : 200 ,
3528
+ "LastSeen" : " 2024-03-19T06:37:04.053171348Z"
3529
+ },
3522
3530
"https://github.com/open-telemetry/opentelemetry-js/releases" : {
3523
3531
"StatusCode" : 200 ,
3524
3532
"LastSeen" : " 2024-01-18T19:37:16.288484-05:00"
You can’t perform that action at this time.
0 commit comments