@opentelemetry/instrumentation-express 0.56.0 → 0.57.1

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
@@ -55,12 +55,12 @@ Because of the way express works, it's hard to correctly compute the time taken
55
55
 
56
56
  Express instrumentation has few options available to choose from. You can set the following:
57
57
 
58
- | Options | Type | Example | Description |
59
- | ------- | ---- | ------- | ----------- |
60
- | `ignoreLayers` | `IgnoreMatcher[]` | `[/^\/_internal\//]` | Ignore layers that by match. |
61
- | `ignoreLayersType`| `ExpressLayerType[]` | `['request_handler']` | Ignore layers of specified type. |
62
- | `spanNameHook` | `SpanNameHook` | `() => 'my-span-name'` | Can be used to customize span names by returning a new name from the hook. |
63
- | `requestHook` | `ExpressRequestCustomAttributeFunction (function)` | `(span, info) => {}` | Function for adding custom attributes on Express request. Receives params: `Span, ExpressRequestInfo`. |
58
+ | Options | Type | Example | Description |
59
+ |--------------------|----------------------------------------------------|------------------------|--------------------------------------------------------------------------------------------------------|
60
+ | `ignoreLayers` | `IgnoreMatcher[]` | `[/^\/_internal\//]` | Ignore layers that by match. |
61
+ | `ignoreLayersType` | `ExpressLayerType[]` | `['request_handler']` | Ignore layers of specified type. |
62
+ | `spanNameHook` | `SpanNameHook` | `() => 'my-span-name'` | Can be used to customize span names by returning a new name from the hook. |
63
+ | `requestHook` | `ExpressRequestCustomAttributeFunction (function)` | `(span, info) => {}` | Function for adding custom attributes on Express request. Receives params: `Span, ExpressRequestInfo`. |
64
64
 
65
65
  `ignoreLayers` accepts an array of elements of types:
66
66
 
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "0.56.0";
1
+ export declare const PACKAGE_VERSION = "0.57.1";
2
2
  export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-express";
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.56.0';
20
+ exports.PACKAGE_VERSION = '0.57.1';
21
21
  exports.PACKAGE_NAME = '@opentelemetry/instrumentation-express';
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,wCAAwC,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.56.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-express';\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,wCAAwC,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.57.1';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-express';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/instrumentation-express",
3
- "version": "0.56.0",
3
+ "version": "0.57.1",
4
4
  "description": "OpenTelemetry instrumentation for `express` http web application framework",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -48,25 +48,17 @@
48
48
  "devDependencies": {
49
49
  "@opentelemetry/api": "^1.3.0",
50
50
  "@opentelemetry/context-async-hooks": "^2.0.0",
51
- "@opentelemetry/contrib-test-utils": "^0.54.0",
51
+ "@opentelemetry/contrib-test-utils": "^0.56.0",
52
52
  "@opentelemetry/sdk-trace-base": "^2.0.0",
53
53
  "@opentelemetry/sdk-trace-node": "^2.0.0",
54
- "@types/express": "5.0.3",
55
- "@types/mocha": "10.0.10",
56
- "@types/node": "18.18.14",
57
- "@types/sinon": "17.0.4",
58
- "express": "^5.1.0",
59
- "nyc": "17.1.0",
60
- "rimraf": "5.0.10",
61
- "sinon": "15.2.0",
62
- "test-all-versions": "6.1.0",
63
- "typescript": "5.0.4"
54
+ "@types/express": "^5.0.5",
55
+ "express": "^5.1.0"
64
56
  },
65
57
  "dependencies": {
66
58
  "@opentelemetry/core": "^2.0.0",
67
- "@opentelemetry/instrumentation": "^0.207.0",
59
+ "@opentelemetry/instrumentation": "^0.208.0",
68
60
  "@opentelemetry/semantic-conventions": "^1.27.0"
69
61
  },
70
62
  "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-express#readme",
71
- "gitHead": "2801ab2f0f9243b154a624298dacb7228c4f70cd"
63
+ "gitHead": "66935ac724cc271f70028035e534d47a4dfbcf12"
72
64
  }