@opentelemetry/instrumentation-socket.io 0.40.0 → 0.41.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.
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm install --save @opentelemetry/instrumentation-socket.io
17
17
 
18
18
  ## Supported Versions
19
19
 
20
- - `>=2 <5`
20
+ - [socket.io](https://www.npmjs.com/package/socket.io) versions `>=2.0.0 <5`
21
21
 
22
22
  ## Usage
23
23
 
@@ -48,16 +48,9 @@ registerInstrumentations({
48
48
  | `onIgnoreEventList` | `string[]` | `[]` | names of listened events to ignore tracing for |
49
49
  | `traceReserved` | `boolean` | `false` | set to true if you want to trace socket.io reserved events (see [docs](https://socket.io/docs/v4/emit-cheatsheet/#Reserved-events)) |
50
50
 
51
- ## Migration From opentelemetry-instrumentation-socket.io
51
+ ## Filter Http Transport
52
52
 
53
- This instrumentation was originally published and maintained under the name `"opentelemetry-instrumentation-socket.io"` in [this repo](https://github.com/aspecto-io/opentelemetry-ext-js).
54
-
55
- Few breaking changes were made during porting to the contrib repo:
56
-
57
- ### filterHttpTransport
58
-
59
- The instrumentation's config `filterHttpTransport` option was removed to decouple this instrumentation from the http instrumentation.
60
- if you do not want to trace the socket.io http requests, add the default socket.io route (`/socket.io/`) to the `HttpInstrumentationConfig.ignoreIncomingPaths` array
53
+ If you do not want to trace the socket.io http requests, add the default socket.io route (`/socket.io/`) to the `HttpInstrumentationConfig.ignoreIncomingPaths` array
61
54
 
62
55
  ## Semantic Conventions
63
56
 
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "0.40.0";
1
+ export declare const PACKAGE_VERSION = "0.41.0";
2
2
  export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-socket.io";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -17,6 +17,6 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.PACKAGE_VERSION = '0.40.0';
20
+ exports.PACKAGE_VERSION = '0.41.0';
21
21
  exports.PACKAGE_NAME = '@opentelemetry/instrumentation-socket.io';
22
22
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,0CAA0C,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.40.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-socket.io';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,0CAA0C,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.41.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-socket.io';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/instrumentation-socket.io",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "OpenTelemetry instrumentation for `socket.io` messaging server implementation for Socket.IO communication",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -12,6 +12,7 @@
12
12
  "clean": "rimraf build/*",
13
13
  "lint": "eslint . --ext .ts",
14
14
  "lint:fix": "eslint . --ext .ts --fix",
15
+ "lint:readme": "node ../../../scripts/lint-readme.js",
15
16
  "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-socket.io --include-dependencies",
16
17
  "prewatch": "npm run precompile",
17
18
  "prepublishOnly": "npm run compile",
@@ -62,5 +63,5 @@
62
63
  "@opentelemetry/semantic-conventions": "^1.22.0"
63
64
  },
64
65
  "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-socket.io#readme",
65
- "gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
66
+ "gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7"
66
67
  }