@opentelemetry/instrumentation-http
Advanced tools
Comparing version 0.16.1-alpha.18 to 0.16.1-alpha.20
@@ -46,3 +46,3 @@ "use strict"; | ||
return new instrumentation_1.InstrumentationNodeModuleDefinition('http', ['*'], moduleExports => { | ||
this._logger.debug(`Applying patch for http@${this._version}`); | ||
api_1.diag.debug(`Applying patch for http@${this._version}`); | ||
if (instrumentation_1.isWrapped(moduleExports.request)) { | ||
@@ -64,3 +64,3 @@ this._unwrap(moduleExports, 'request'); | ||
return; | ||
this._logger.debug(`Removing patch for http@${this._version}`); | ||
api_1.diag.debug(`Removing patch for http@${this._version}`); | ||
this._unwrap(moduleExports, 'request'); | ||
@@ -73,3 +73,3 @@ this._unwrap(moduleExports, 'get'); | ||
return new instrumentation_1.InstrumentationNodeModuleDefinition('https', ['*'], moduleExports => { | ||
this._logger.debug(`Applying patch for https@${this._version}`); | ||
api_1.diag.debug(`Applying patch for https@${this._version}`); | ||
if (instrumentation_1.isWrapped(moduleExports.request)) { | ||
@@ -91,3 +91,3 @@ this._unwrap(moduleExports, 'request'); | ||
return; | ||
this._logger.debug(`Removing patch for https@${this._version}`); | ||
api_1.diag.debug(`Removing patch for https@${this._version}`); | ||
this._unwrap(moduleExports, 'request'); | ||
@@ -193,5 +193,5 @@ this._unwrap(moduleExports, 'get'); | ||
api_1.context.bind(response); | ||
this._logger.debug('outgoingRequest on response()'); | ||
api_1.diag.debug('outgoingRequest on response()'); | ||
response.on('end', () => { | ||
this._logger.debug('outgoingRequest on end()'); | ||
api_1.diag.debug('outgoingRequest on end()'); | ||
let status; | ||
@@ -224,3 +224,3 @@ if (response.aborted && !response.complete) { | ||
}); | ||
this._logger.debug('http.ClientRequest return request'); | ||
api_1.diag.debug('http.ClientRequest return request'); | ||
return request; | ||
@@ -241,4 +241,4 @@ } | ||
const method = request.method || 'GET'; | ||
instrumentation._logger.debug('%s instrumentation incomingRequest', component); | ||
if (utils.isIgnored(pathname, instrumentation._getConfig().ignoreIncomingPaths, (e) => instrumentation._logger.error('caught ignoreIncomingPaths error: ', e))) { | ||
api_1.diag.debug('%s instrumentation incomingRequest', component); | ||
if (utils.isIgnored(pathname, instrumentation._getConfig().ignoreIncomingPaths, (e) => api_1.diag.error('caught ignoreIncomingPaths error: ', e))) { | ||
return api_1.context.with(api_1.suppressInstrumentation(api_1.context.active()), () => { | ||
@@ -324,3 +324,3 @@ api_1.context.bind(request); | ||
} | ||
if (utils.isIgnored(origin + pathname, instrumentation._getConfig().ignoreOutgoingUrls, (e) => instrumentation._logger.error('caught ignoreOutgoingUrls error: ', e))) { | ||
if (utils.isIgnored(origin + pathname, instrumentation._getConfig().ignoreOutgoingUrls, (e) => api_1.diag.error('caught ignoreOutgoingUrls error: ', e))) { | ||
return original.apply(this, [optionsParsed, ...args]); | ||
@@ -344,3 +344,3 @@ } | ||
}); | ||
instrumentation._logger.debug('%s instrumentation outgoingRequest', component); | ||
api_1.diag.debug('%s instrumentation outgoingRequest', component); | ||
api_1.context.bind(request); | ||
@@ -347,0 +347,0 @@ return instrumentation._traceClientRequest(component, request, optionsParsed, span); |
{ | ||
"name": "@opentelemetry/instrumentation-http", | ||
"version": "0.16.1-alpha.18+9f965b0c", | ||
"version": "0.16.1-alpha.20+62f8695d", | ||
"description": "OpenTelemetry http/https automatic instrumentation package.", | ||
@@ -46,5 +46,5 @@ "main": "build/src/index.js", | ||
"@opentelemetry/context-base": "^0.16.0", | ||
"@opentelemetry/core": "^0.16.1-alpha.18+9f965b0c", | ||
"@opentelemetry/node": "^0.16.1-alpha.18+9f965b0c", | ||
"@opentelemetry/tracing": "^0.16.1-alpha.18+9f965b0c", | ||
"@opentelemetry/core": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/node": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/tracing": "^0.16.1-alpha.20+62f8695d", | ||
"@types/got": "9.6.11", | ||
@@ -74,8 +74,8 @@ "@types/mocha": "8.2.0", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.16.0", | ||
"@opentelemetry/instrumentation": "^0.16.0", | ||
"@opentelemetry/api": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/instrumentation": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/semantic-conventions": "^0.16.0", | ||
"semver": "^7.1.3" | ||
}, | ||
"gitHead": "9f965b0c749108df00bbe44eeab84d79b04bb0a4" | ||
"gitHead": "62f8695d3fe5309c62418a1043bc6e8a176bc11f" | ||
} |
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
92238
+ Added@opentelemetry/api@0.16.1-alpha.20(transitive)
+ Added@opentelemetry/api-metrics@0.16.1-alpha.20(transitive)
+ Added@opentelemetry/instrumentation@0.16.1-alpha.20(transitive)
- Removed@opentelemetry/api@0.16.0(transitive)
- Removed@opentelemetry/api-metrics@0.16.0(transitive)
- Removed@opentelemetry/instrumentation@0.16.0(transitive)
Updated@opentelemetry/instrumentation@^0.16.1-alpha.20+62f8695d