@opentelemetry/plugin-grpc
Advanced tools
Comparing version 0.16.1-alpha.18 to 0.16.1-alpha.20
@@ -43,3 +43,3 @@ "use strict"; | ||
patch() { | ||
this._logger.debug('applying patch to %s@%s', this.moduleName, this.version); | ||
api_1.diag.debug('applying patch to %s@%s', this.moduleName, this.version); | ||
if (this._moduleExports.Server) { | ||
@@ -58,3 +58,3 @@ shimmer.wrap(this._moduleExports.Server.prototype, 'register', this._patchServer()); | ||
unpatch() { | ||
this._logger.debug('removing patch to %s@%s', this.moduleName, this.version); | ||
api_1.diag.debug('removing patch to %s@%s', this.moduleName, this.version); | ||
if (this._moduleExports.Server) { | ||
@@ -76,3 +76,3 @@ shimmer.unwrap(this._moduleExports.Server.prototype, 'register'); | ||
const plugin = this; | ||
plugin._logger.debug('patched gRPC server'); | ||
api_1.diag.debug('patched gRPC server'); | ||
return function register(name, handler, serialize, deserialize, type) { | ||
@@ -100,3 +100,3 @@ const originalResult = originalRegister.apply(this, arguments); | ||
}; | ||
plugin._logger.debug('patch func: %s', JSON.stringify(spanOptions)); | ||
api_1.diag.debug('patch func: %s', JSON.stringify(spanOptions)); | ||
api_1.context.with(api_1.propagation.extract(api_1.ROOT_CONTEXT, call.metadata, { | ||
@@ -199,3 +199,3 @@ get: (metadata, key) => metadata.get(key).map(String), | ||
return (original) => { | ||
plugin._logger.debug('patching client'); | ||
api_1.diag.debug('patching client'); | ||
return function makeClientConstructor(methods, _serviceName, _options) { | ||
@@ -229,3 +229,3 @@ const client = original.apply(this, arguments); | ||
return (original) => { | ||
plugin._logger.debug('patch all client methods'); | ||
api_1.diag.debug('patch all client methods'); | ||
return function clientMethodTrace() { | ||
@@ -232,0 +232,0 @@ const name = `grpc.${original.path.replace('/', '')}`; |
{ | ||
"name": "@opentelemetry/plugin-grpc", | ||
"version": "0.16.1-alpha.18+9f965b0c", | ||
"version": "0.16.1-alpha.20+62f8695d", | ||
"description": "OpenTelemetry grpc automatic instrumentation package.", | ||
@@ -46,4 +46,4 @@ "main": "build/src/index.js", | ||
"@opentelemetry/grpc-utils": "^0.16.0", | ||
"@opentelemetry/node": "^0.16.1-alpha.18+9f965b0c", | ||
"@opentelemetry/tracing": "^0.16.1-alpha.18+9f965b0c", | ||
"@opentelemetry/node": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/tracing": "^0.16.1-alpha.20+62f8695d", | ||
"@types/mocha": "8.2.0", | ||
@@ -68,8 +68,8 @@ "@types/node": "14.14.20", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.16.0", | ||
"@opentelemetry/core": "^0.16.1-alpha.18+9f965b0c", | ||
"@opentelemetry/api": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/core": "^0.16.1-alpha.20+62f8695d", | ||
"@opentelemetry/semantic-conventions": "^0.16.0", | ||
"shimmer": "^1.2.1" | ||
}, | ||
"gitHead": "9f965b0c749108df00bbe44eeab84d79b04bb0a4" | ||
"gitHead": "62f8695d3fe5309c62418a1043bc6e8a176bc11f" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
56786
- Removed@opentelemetry/api@0.16.0(transitive)