@opentelemetry/instrumentation-http
Advanced tools
Comparing version 0.17.1-alpha.21 to 0.18.1-alpha.12
@@ -183,4 +183,4 @@ "use strict"; | ||
request.on('response', (response) => { | ||
const attributes = utils.getOutgoingRequestAttributesOnResponse(response, { hostname }); | ||
span.setAttributes(attributes); | ||
const responseAttributes = utils.getOutgoingRequestAttributesOnResponse(response, { hostname }); | ||
span.setAttributes(responseAttributes); | ||
if (this._getConfig().responseHook) { | ||
@@ -187,0 +187,0 @@ this._callResponseHook(span, response); |
@@ -375,3 +375,6 @@ "use strict"; | ||
const getIncomingRequestAttributesOnResponse = (request, response) => { | ||
const { statusCode, statusMessage, socket } = response; | ||
// take socket from the request, | ||
// since it may be detached from the response object in keep-alive mode | ||
const { socket } = request; | ||
const { statusCode, statusMessage } = response; | ||
const { localAddress, localPort, remoteAddress, remotePort } = socket; | ||
@@ -378,0 +381,0 @@ const { __ot_middlewares } = request; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.17.0"; | ||
export declare const VERSION = "0.18.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.17.0'; | ||
exports.VERSION = '0.18.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-http", | ||
"version": "0.17.1-alpha.21+a91ea761", | ||
"version": "0.18.1-alpha.12+6540b54a", | ||
"description": "OpenTelemetry http/https automatic instrumentation package.", | ||
@@ -44,7 +44,6 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/context-async-hooks": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/context-base": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/core": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/node": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/tracing": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/context-async-hooks": "^0.18.1-alpha.12+6540b54a", | ||
"@opentelemetry/core": "^0.18.1-alpha.12+6540b54a", | ||
"@opentelemetry/node": "^0.18.1-alpha.12+6540b54a", | ||
"@opentelemetry/tracing": "^0.18.1-alpha.12+6540b54a", | ||
"@types/got": "9.6.11", | ||
@@ -74,8 +73,8 @@ "@types/mocha": "8.2.0", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/instrumentation": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/semantic-conventions": "^0.17.1-alpha.21+a91ea761", | ||
"@opentelemetry/api": "^0.18.0", | ||
"@opentelemetry/instrumentation": "^0.18.1-alpha.12+6540b54a", | ||
"@opentelemetry/semantic-conventions": "^0.18.1-alpha.12+6540b54a", | ||
"semver": "^7.1.3" | ||
}, | ||
"gitHead": "a91ea7617f288af632934334d0c8ecece318ce73" | ||
"gitHead": "6540b54a8bd49746e164ab730269188237f89b1c" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
92424
26
1054
1
+ Added@opentelemetry/api@0.18.1(transitive)
+ Added@opentelemetry/api-metrics@0.18.2(transitive)
+ Added@opentelemetry/instrumentation@0.18.2(transitive)
+ Added@opentelemetry/semantic-conventions@0.18.2(transitive)
- Removed@opentelemetry/api@0.17.1-alpha.21(transitive)
- Removed@opentelemetry/api-metrics@0.17.1-alpha.21(transitive)
- Removed@opentelemetry/context-base@0.17.1-alpha.21(transitive)
- Removed@opentelemetry/instrumentation@0.17.1-alpha.21(transitive)
- Removed@opentelemetry/semantic-conventions@0.17.1-alpha.21(transitive)
Updated@opentelemetry/api@^0.18.0
Updated@opentelemetry/instrumentation@^0.18.1-alpha.12+6540b54a
Updated@opentelemetry/semantic-conventions@^0.18.1-alpha.12+6540b54a