opentelemetry-esbuild-plugin-node 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Compatible with OpenTelemetry JS API and SDK `1.0+`.
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install --save
|
|
19
|
+
npm install --save opentelemetry-esbuild-plugin-node
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Usage: Esbuild plugin
|
|
@@ -28,7 +28,7 @@ Please see the [Supported Instrumentations](#supported-instrumentations) section
|
|
|
28
28
|
Enable auto instrumentation by configuring it in your esbuild script:
|
|
29
29
|
|
|
30
30
|
```javascript
|
|
31
|
-
const { openTelemetryPlugin } = require('
|
|
31
|
+
const { openTelemetryPlugin } = require('opentelemetry-esbuild-plugin-node');
|
|
32
32
|
const { build } = require('esbuild');
|
|
33
33
|
|
|
34
34
|
build({
|
|
@@ -44,12 +44,12 @@ build({
|
|
|
44
44
|
|
|
45
45
|
## Usage: Instrumentation Initialization
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
This packages for Node automatically loads instrumentations for Node builtin modules and common packages.
|
|
48
48
|
|
|
49
49
|
Enable auto instrumentation by configuring it in your esbuild script:
|
|
50
50
|
|
|
51
51
|
```javascript
|
|
52
|
-
const { openTelemetryPlugin } = require('
|
|
52
|
+
const { openTelemetryPlugin } = require('opentelemetry-esbuild-plugin-node');
|
|
53
53
|
const { build } = require('esbuild');
|
|
54
54
|
|
|
55
55
|
build({
|
|
@@ -66,7 +66,7 @@ build({
|
|
|
66
66
|
Custom configuration for each of the instrumentations can be passed to the plugin, by providing an object with the name of the instrumentation as a key, and its configuration as the value.
|
|
67
67
|
|
|
68
68
|
```javascript
|
|
69
|
-
const { openTelemetryPlugin } = require('
|
|
69
|
+
const { openTelemetryPlugin } = require('opentelemetry-esbuild-plugin-node');
|
|
70
70
|
const { build } = require('esbuild');
|
|
71
71
|
|
|
72
72
|
build({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opentelemetry-esbuild-plugin-node",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Metapackage which bundles opentelemetry node core and contrib instrumentations via an esbuild plugin",
|
|
5
5
|
"author": "Drew Corlin",
|
|
6
6
|
"homepage": "https://github.com/DrewCorlin/opentelemetry-esbuild-plugin-node",
|