@midwayjs/otel 3.10.15 → 3.11.0

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -48,11 +48,6 @@ const sdk = new opentelemetry.NodeSDK({
48
48
  // initialize the SDK and register with the OpenTelemetry API
49
49
  // this enables the API to record telemetry
50
50
  sdk.start()
51
- .then(() => {
52
- return Bootstrap
53
- .configure(/**/)
54
- .run();
55
- });
56
51
 
57
52
  // gracefully shut down the SDK on process exit
58
53
  process.on('SIGTERM', () => {
@@ -61,6 +56,11 @@ process.on('SIGTERM', () => {
61
56
  .catch((error) => console.log('Error terminating tracing', error))
62
57
  .finally(() => process.exit(0));
63
58
  });
59
+
60
+ Bootstrap
61
+ .configure(/**/)
62
+ .run();
63
+
64
64
  ```
65
65
 
66
66
  You can find more information at [opentelemetry-js](https://github.com/open-telemetry/opentelemetry-js)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/otel",
3
3
  "description": "midway open telemetry component",
4
- "version": "3.10.15",
4
+ "version": "3.11.0",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -10,9 +10,9 @@
10
10
  "index.d.ts"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.10.15",
14
- "@midwayjs/koa": "^3.10.15",
15
- "@midwayjs/mock": "^3.10.15",
13
+ "@midwayjs/core": "^3.11.0",
14
+ "@midwayjs/koa": "^3.11.0",
15
+ "@midwayjs/mock": "^3.11.0",
16
16
  "@opentelemetry/core": "^1.0.1",
17
17
  "@opentelemetry/sdk-trace-base": "^1.0.1",
18
18
  "@opentelemetry/sdk-trace-node": "^1.0.1"
@@ -41,5 +41,5 @@
41
41
  "type": "git",
42
42
  "url": "https://github.com/midwayjs/midway.git"
43
43
  },
44
- "gitHead": "8d5fd0e58156612c675821134377208e4da710ad"
44
+ "gitHead": "eadb977e7fddcd4287c099fc32b601cd51702514"
45
45
  }