@opentelemetry/instrumentation-express
Advanced tools
Comparing version 0.31.1 to 0.31.2
@@ -182,9 +182,6 @@ "use strict"; | ||
} | ||
const startTime = core_1.hrTime(); | ||
let spanHasEnded = false; | ||
// If we found anything that isnt a middleware, there no point of measuring | ||
// their time since they dont have callback. | ||
if (metadata.attributes[AttributeNames_1.AttributeNames.EXPRESS_TYPE] !== | ||
ExpressLayerType_1.ExpressLayerType.MIDDLEWARE) { | ||
span.end(startTime); | ||
span.end(); | ||
spanHasEnded = true; | ||
@@ -196,3 +193,3 @@ } | ||
spanHasEnded = true; | ||
span.end(startTime); | ||
span.end(); | ||
} | ||
@@ -199,0 +196,0 @@ }; |
import { kLayerPatched } from './'; | ||
import { Request } from 'express'; | ||
import type { Request } from 'express'; | ||
import { Span, SpanAttributes } from '@opentelemetry/api'; | ||
@@ -4,0 +4,0 @@ import { InstrumentationConfig } from '@opentelemetry/instrumentation'; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.31.1"; | ||
export declare const VERSION = "0.31.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.31.1'; | ||
exports.VERSION = '0.31.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-express", | ||
"version": "0.31.1", | ||
"version": "0.31.2", | ||
"description": "OpenTelemetry express automatic instrumentation package.", | ||
@@ -34,3 +34,3 @@ "main": "build/src/index.js", | ||
"engines": { | ||
"node": ">=8.12.0" | ||
"node": ">=14" | ||
}, | ||
@@ -76,3 +76,3 @@ "files": [ | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-express#readme", | ||
"gitHead": "6c754877fd0ad0af3acf13cf10b62066357a75d3" | ||
"gitHead": "35226602b92a7587f16a1eb959e4f3b3948f6e9d" | ||
} |
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
59852
24
657