Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/plugin-grpc

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/plugin-grpc - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

build/src/grpc.js.map

30

build/src/grpc.js

@@ -89,3 +89,2 @@ "use strict";

[semantic_conventions_1.RpcAttribute.GRPC_KIND]: spanOptions.kind,
[semantic_conventions_1.GeneralAttribute.COMPONENT]: GrpcPlugin.component,
});

@@ -182,11 +181,16 @@ plugin._tracer.withSpan(span, () => {

_getMethodsToWrap(client, methods) {
const methodsToWrap = [
...Object.keys(methods),
...Object.keys(methods)
.map(methodName => methods[methodName].originalName)
.filter(originalName =>
// eslint-disable-next-line no-prototype-builtins
!!originalName && client.prototype.hasOwnProperty(originalName)),
];
return methodsToWrap;
const methodList = [];
// For a method defined in .proto as "UnaryMethod"
Object.entries(methods).forEach(([name, { originalName }]) => {
methodList.push(name); // adds camel case method name: "unaryMethod"
if (originalName &&
// eslint-disable-next-line no-prototype-builtins
client.prototype.hasOwnProperty(originalName) &&
name !== originalName // do not add duplicates
) {
// adds original method name: "UnaryMethod",
methodList.push(originalName);
}
});
return methodList;
}

@@ -200,7 +204,5 @@ _getPatchedClientMethods() {

const args = Array.prototype.slice.call(arguments);
const span = plugin._tracer
.startSpan(name, {
const span = plugin._tracer.startSpan(name, {
kind: api_1.SpanKind.CLIENT,
})
.setAttribute(semantic_conventions_1.GeneralAttribute.COMPONENT, GrpcPlugin.component);
});
return plugin._tracer.withSpan(span, () => plugin._makeGrpcClientRemoteCall(original, args, this, plugin)(span));

@@ -207,0 +209,0 @@ };

@@ -1,2 +0,2 @@

export declare const VERSION = "0.9.0";
export declare const VERSION = "0.10.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.9.0';
exports.VERSION = '0.10.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/plugin-grpc",
"version": "0.9.0",
"version": "0.10.0",
"description": "OpenTelemetry grpc automatic instrumentation package.",

@@ -35,2 +35,3 @@ "main": "build/src/index.js",

"build/src/**/*.js",
"build/src/**/*.js.map",
"build/src/**/*.d.ts",

@@ -45,12 +46,13 @@ "doc",

"devDependencies": {
"@opentelemetry/context-async-hooks": "^0.9.0",
"@opentelemetry/context-base": "^0.9.0",
"@opentelemetry/node": "^0.9.0",
"@opentelemetry/tracing": "^0.9.0",
"@types/mocha": "7.0.2",
"@types/node": "14.0.13",
"@types/semver": "7.2.0",
"@opentelemetry/context-async-hooks": "^0.10.0",
"@opentelemetry/context-base": "^0.10.0",
"@opentelemetry/grpc-utils": "^0.10.0",
"@opentelemetry/node": "^0.10.0",
"@opentelemetry/tracing": "^0.10.0",
"@types/mocha": "8.0.0",
"@types/node": "14.0.25",
"@types/semver": "7.3.1",
"@types/shimmer": "1.0.1",
"@types/sinon": "9.0.4",
"codecov": "3.7.0",
"codecov": "3.7.2",
"grpc": "1.24.3",

@@ -66,10 +68,11 @@ "gts": "2.0.2",

"ts-node": "8.10.2",
"typescript": "3.9.5"
"typescript": "3.9.7"
},
"dependencies": {
"@opentelemetry/api": "^0.9.0",
"@opentelemetry/core": "^0.9.0",
"@opentelemetry/semantic-conventions": "^0.9.0",
"@opentelemetry/api": "^0.10.0",
"@opentelemetry/core": "^0.10.0",
"@opentelemetry/semantic-conventions": "^0.10.0",
"shimmer": "^1.2.1"
}
},
"gitHead": "ab62a4d69b99b3a8c9c26100c04f3226af7859df"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc