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
Copy file name to clipboardExpand all lines: packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg/README.md
+45-2Lines changed: 45 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,19 +13,62 @@ For automatic instrumentation see the
13
13
14
14
```bash
15
15
npm install --save @opentelemetry/plugin-pg
16
+
npm install --save @opentelemetry/plugin-pg-pool
16
17
```
17
18
18
19
## Usage
19
20
21
+
To load all of the [default supported plugins](https://github.com/open-telemetry/opentelemetry-js#plugins), use the below approach. Each plugin is only loaded when the module that it patches is loaded; in other words, there is no computational overhead for listing plugsin for unused modules.
// You may use a package name or absolute path to the module
39
+
path:'@opentelemetry/plugin-pg',
40
+
}
41
+
}
42
+
});
24
43
```
25
44
45
+
If you are using any of the [`pg.Pool`](https://node-postgres.com/api/pool) APIs, you will also need to include the [`pg-pool` plugin](../opentelemetry-plugin-pg-pool).
0 commit comments