@opentelemetry/instrumentation-nestjs-core
Advanced tools
Comparing version 0.26.0 to 0.27.0
@@ -98,2 +98,3 @@ "use strict"; | ||
return function (req, res, next) { | ||
var _a; | ||
const callbackName = callback.name; | ||
@@ -107,3 +108,3 @@ const instanceName = instance.constructor && instance.constructor.name | ||
const span = tracer.startSpan(spanName, { | ||
attributes: Object.assign(Object.assign({}, Instrumentation.COMMON_ATTRIBUTES), { [enums_1.AttributeNames.VERSION]: moduleVersion, [enums_1.AttributeNames.TYPE]: enums_1.NestType.REQUEST_CONTEXT, [semantic_conventions_1.SemanticAttributes.HTTP_METHOD]: req.method, [semantic_conventions_1.SemanticAttributes.HTTP_URL]: req.originalUrl, [semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: req.route.path, [enums_1.AttributeNames.CONTROLLER]: instanceName, [enums_1.AttributeNames.CALLBACK]: callbackName }), | ||
attributes: Object.assign(Object.assign({}, Instrumentation.COMMON_ATTRIBUTES), { [enums_1.AttributeNames.VERSION]: moduleVersion, [enums_1.AttributeNames.TYPE]: enums_1.NestType.REQUEST_CONTEXT, [semantic_conventions_1.SemanticAttributes.HTTP_METHOD]: req.method, [semantic_conventions_1.SemanticAttributes.HTTP_URL]: req.originalUrl || req.url, [semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: ((_a = req.route) === null || _a === void 0 ? void 0 : _a.path) || req.routerPath, [enums_1.AttributeNames.CONTROLLER]: instanceName, [enums_1.AttributeNames.CALLBACK]: callbackName }), | ||
}); | ||
@@ -110,0 +111,0 @@ const spanContext = api.trace.setSpan(api.context.active(), span); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.26.0"; | ||
export declare const VERSION = "0.27.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.26.0'; | ||
exports.VERSION = '0.27.0'; | ||
//# sourceMappingURL=version.js.map |
# Changelog | ||
## [0.27.0](https://www.github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-nestjs-core-v0.26.0...instrumentation-nestjs-core-v0.27.0) (2021-11-12) | ||
### Features | ||
* report `path` and `route` with fastify backend in nestjs-core instrumentation ([#714](https://www.github.com/open-telemetry/opentelemetry-js-contrib/issues/714)) ([62a04c7](https://www.github.com/open-telemetry/opentelemetry-js-contrib/commit/62a04c7a7d640393c31ae357131bfca766c1f3fb)) | ||
## [0.26.0](https://www.github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-nestjs-core-v0.25.0...instrumentation-nestjs-core-v0.26.0) (2021-10-22) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@opentelemetry/instrumentation-nestjs-core", | ||
"version": "0.26.0", | ||
"version": "0.27.0", | ||
"description": "OpenTelemetry NestJS automatic instrumentation package.", | ||
@@ -56,5 +56,5 @@ "main": "build/src/index.js", | ||
"@opentelemetry/api": "1.0.2", | ||
"@opentelemetry/context-async-hooks": "1.0.0", | ||
"@opentelemetry/sdk-trace-base": "1.0.0", | ||
"@opentelemetry/sdk-trace-node": "1.0.0", | ||
"@opentelemetry/context-async-hooks": "1.0.1", | ||
"@opentelemetry/sdk-trace-base": "1.0.1", | ||
"@opentelemetry/sdk-trace-node": "1.0.1", | ||
"@types/mocha": "7.0.2", | ||
@@ -81,3 +81,3 @@ "@types/node": "14.17.6", | ||
}, | ||
"gitHead": "f80834b97bd8e5b1f78923b40fd69d60691c6ff4" | ||
"gitHead": "089e3cb3582b95b08133900002d39ad1da91277d" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40335
314