You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A subset of instrumentations from the [OTEL auto-instrumentations-node metapackage](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/metapackages/auto-instrumentations-node)
13
+
are also included.
14
+
15
+
Following instrumentations from the metapackage are included:
16
+
-`amqplib`
17
+
-`bunyan`
18
+
-`cassandra-driver`
19
+
-`connect`
20
+
-`dataloader`
21
+
-`dns`*- default*
22
+
-`express`*- default*
23
+
-`fs`
24
+
-`graphql`*- default*
25
+
-`grpc`*- default*
26
+
-`hapi`*- default*
27
+
-`http`*- default*
28
+
-`ioredis`*- default*
29
+
-`kafkajs`
30
+
-`knex`
31
+
-`koa`*- default*
32
+
-`memcached`
33
+
-`mongodb`*- default*
34
+
-`mongoose`
35
+
-`mysql`*- default*
36
+
-`mysql2`
37
+
-`nestjs-core`
38
+
-`net`*- default*
39
+
-`pg`*- default*
40
+
-`pino`
41
+
-`redis`*- default*
42
+
-`restify`
43
+
-`socket.io`
44
+
-`undici`
45
+
-`winston`
46
+
47
+
Instrumentations annotated with "*- default*" are loaded by default.
48
+
49
+
To only load specific instrumentations, specify the `OTEL_NODE_ENABLED_INSTRUMENTATIONS` environment variable in the lambda configuration.
50
+
This disables all the defaults, and only enables the ones you specify. Selectively disabling instrumentations from the defaults is also possible with the `OTEL_NODE_DISABLED_INSTRUMENTATIONS` environment variable.
51
+
52
+
The environment variables should be set to a comma-separated list of the instrumentation package names without the
53
+
`@opentelemetry/instrumentation-` prefix.
54
+
55
+
For example, to enable only `@opentelemetry/instrumentation-http` and `@opentelemetry/instrumentation-undici`:
56
+
```shell
57
+
OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,undici"
58
+
```
59
+
To disable only `@opentelemetry/instrumentation-net`:
60
+
```shell
61
+
OTEL_NODE_DISABLED_INSTRUMENTATIONS="net"
62
+
```
10
63
11
64
## Building
12
65
@@ -31,5 +84,4 @@ You'll find the generated layer zip file at `./packages/layer/build/layer.zip`.
31
84
Sample applications are provided to show usage of the above layer.
32
85
33
86
- Application using AWS SDK - shows using the wrapper with an application using AWS SDK without code change.
34
-
-[Using layer built from source](./integration-tests/aws-sdk)
35
87
-[WIP][Using OTel Public Layer](./sample-apps/aws-sdk)
0 commit comments