@opentelemetry/instrumentation-express 0.51.1 → 0.53.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/build/src/types.d.ts +1 -1
- package/build/src/types.js.map +1 -1
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +20 -15
package/build/src/types.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface ExpressRequestCustomAttributeFunction {
|
|
|
25
25
|
(span: Span, info: ExpressRequestInfo): void;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Options available for the Express Instrumentation (see [documentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/
|
|
28
|
+
* Options available for the Express Instrumentation (see [documentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-express#express-instrumentation-options))
|
|
29
29
|
*/
|
|
30
30
|
export interface ExpressInstrumentationConfig extends InstrumentationConfig {
|
|
31
31
|
/** Ignore specific based on their name */
|
package/build/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","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\nimport { Span } from '@opentelemetry/api';\nimport { InstrumentationConfig } from '@opentelemetry/instrumentation';\nimport { ExpressLayerType } from './enums/ExpressLayerType';\n\nexport type LayerPathSegment = string | RegExp | number;\n\nexport type IgnoreMatcher = string | RegExp | ((name: string) => boolean);\n\nexport type ExpressRequestInfo<T = any> = {\n /** An express request object */\n request: T;\n route: string;\n layerType: ExpressLayerType;\n};\n\nexport type SpanNameHook = (\n info: ExpressRequestInfo,\n /**\n * If no decision is taken based on RequestInfo, the default name\n * supplied by the instrumentation can be used instead.\n */\n defaultName: string\n) => string;\n\n/**\n * Function that can be used to add custom attributes to the current span or the root span on\n * a Express request\n * @param span - The Express middleware layer span.\n * @param info - An instance of ExpressRequestInfo that contains info about the request such as the route, and the layer type.\n */\nexport interface ExpressRequestCustomAttributeFunction {\n (span: Span, info: ExpressRequestInfo): void;\n}\n\n/**\n * Options available for the Express Instrumentation (see [documentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","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\nimport { Span } from '@opentelemetry/api';\nimport { InstrumentationConfig } from '@opentelemetry/instrumentation';\nimport { ExpressLayerType } from './enums/ExpressLayerType';\n\nexport type LayerPathSegment = string | RegExp | number;\n\nexport type IgnoreMatcher = string | RegExp | ((name: string) => boolean);\n\nexport type ExpressRequestInfo<T = any> = {\n /** An express request object */\n request: T;\n route: string;\n layerType: ExpressLayerType;\n};\n\nexport type SpanNameHook = (\n info: ExpressRequestInfo,\n /**\n * If no decision is taken based on RequestInfo, the default name\n * supplied by the instrumentation can be used instead.\n */\n defaultName: string\n) => string;\n\n/**\n * Function that can be used to add custom attributes to the current span or the root span on\n * a Express request\n * @param span - The Express middleware layer span.\n * @param info - An instance of ExpressRequestInfo that contains info about the request such as the route, and the layer type.\n */\nexport interface ExpressRequestCustomAttributeFunction {\n (span: Span, info: ExpressRequestInfo): void;\n}\n\n/**\n * Options available for the Express Instrumentation (see [documentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-express#express-instrumentation-options))\n */\nexport interface ExpressInstrumentationConfig extends InstrumentationConfig {\n /** Ignore specific based on their name */\n ignoreLayers?: IgnoreMatcher[];\n /** Ignore specific layers based on their type */\n ignoreLayersType?: ExpressLayerType[];\n spanNameHook?: SpanNameHook;\n\n /** Function for adding custom attributes on Express request */\n requestHook?: ExpressRequestCustomAttributeFunction;\n}\n"]}
|
package/build/src/version.d.ts
CHANGED
package/build/src/version.js
CHANGED
|
@@ -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.
|
|
20
|
+
exports.PACKAGE_VERSION = '0.53.0';
|
|
21
21
|
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-express';
|
|
22
22
|
//# sourceMappingURL=version.js.map
|
package/build/src/version.js.map
CHANGED
|
@@ -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.
|
|
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.53.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-express';\n"]}
|
package/package.json
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/instrumentation-express",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
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",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/open-telemetry/opentelemetry-js-contrib.git",
|
|
10
|
+
"directory": "packages/instrumentation-express"
|
|
11
|
+
},
|
|
8
12
|
"scripts": {
|
|
9
|
-
"test-all-versions": "tav",
|
|
10
|
-
"test": "nyc mocha 'test/**/*.test.ts'",
|
|
11
|
-
"tdd": "yarn test -- --watch-extensions ts --watch",
|
|
12
13
|
"clean": "rimraf build/*",
|
|
13
|
-
"lint": "eslint . --ext .ts",
|
|
14
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
15
|
-
"lint:readme": "node ../../../scripts/lint-readme.js",
|
|
16
|
-
"version:update": "node ../../../scripts/version-update.js",
|
|
17
|
-
"setup:dev": "nx run-many -t compile -p @opentelemetry/instrumentation-express",
|
|
18
14
|
"compile": "tsc -p .",
|
|
15
|
+
"compile:with-dependencies": "nx run-many -t compile -p @opentelemetry/instrumentation-express",
|
|
16
|
+
"lint": "eslint . --ext=ts,js,mjs",
|
|
17
|
+
"lint:fix": "eslint . --ext=ts,js,mjs --fix",
|
|
18
|
+
"lint:readme": "node ../../scripts/lint-readme.js",
|
|
19
19
|
"prepublishOnly": "npm run compile",
|
|
20
|
+
"tdd": "yarn test -- --watch-extensions ts --watch",
|
|
21
|
+
"test": "nyc --no-clean mocha 'test/**/*.test.ts'",
|
|
22
|
+
"test-all-versions": "tav",
|
|
23
|
+
"test-merge-coverage": "nyc merge .nyc_output coverage/coverage-final.json",
|
|
24
|
+
"version:update": "node ../../scripts/version-update.js",
|
|
20
25
|
"watch": "tsc -w"
|
|
21
26
|
},
|
|
22
27
|
"keywords": [
|
|
@@ -46,10 +51,10 @@
|
|
|
46
51
|
"devDependencies": {
|
|
47
52
|
"@opentelemetry/api": "^1.3.0",
|
|
48
53
|
"@opentelemetry/context-async-hooks": "^2.0.0",
|
|
49
|
-
"@opentelemetry/contrib-test-utils": "^0.
|
|
54
|
+
"@opentelemetry/contrib-test-utils": "^0.50.0",
|
|
50
55
|
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
51
56
|
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
|
52
|
-
"@types/express": "
|
|
57
|
+
"@types/express": "5.0.3",
|
|
53
58
|
"@types/mocha": "10.0.10",
|
|
54
59
|
"@types/node": "18.18.14",
|
|
55
60
|
"@types/sinon": "17.0.4",
|
|
@@ -62,9 +67,9 @@
|
|
|
62
67
|
},
|
|
63
68
|
"dependencies": {
|
|
64
69
|
"@opentelemetry/core": "^2.0.0",
|
|
65
|
-
"@opentelemetry/instrumentation": "^0.
|
|
70
|
+
"@opentelemetry/instrumentation": "^0.204.0",
|
|
66
71
|
"@opentelemetry/semantic-conventions": "^1.27.0"
|
|
67
72
|
},
|
|
68
|
-
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/
|
|
69
|
-
"gitHead": "
|
|
73
|
+
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-express#readme",
|
|
74
|
+
"gitHead": "0a45ac1b951d2acd2e40834e7ae012c04820faec"
|
|
70
75
|
}
|