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

@opentelemetry/instrumentation-connect

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-connect - npm Package Compare versions

Comparing version 0.31.4 to 0.32.0

15

build/src/index.js

@@ -17,15 +17,6 @@ "use strict";

*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./enums/AttributeNames"), exports);
__exportStar(require("./instrumentation"), exports);
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./enums/AttributeNames"), exports);
(0, tslib_1.__exportStar)(require("./instrumentation"), exports);
//# sourceMappingURL=index.js.map

7

build/src/instrumentation.js

@@ -92,6 +92,3 @@ "use strict";

}
const [reqArgIdx, resArgIdx, nextArgIdx] = isErrorMiddleware
? [1, 2, 3]
: [0, 1, 2];
const req = arguments[reqArgIdx];
const [resArgIdx, nextArgIdx] = isErrorMiddleware ? [2, 3] : [1, 2];
const res = arguments[resArgIdx];

@@ -101,3 +98,3 @@ const next = arguments[nextArgIdx];

if (routeName && (rpcMetadata === null || rpcMetadata === void 0 ? void 0 : rpcMetadata.type) === core_1.RPCType.HTTP) {
rpcMetadata.span.updateName(`${req.method} ${routeName || '/'}`);
rpcMetadata.route = routeName;
}

@@ -104,0 +101,0 @@ let spanName = '';

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

export declare const VERSION = "0.31.4";
export declare const VERSION = "0.32.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -62,8 +62,9 @@ "main": "build/src/index.js",

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.40.0",
"@opentelemetry/instrumentation": "^0.41.0",
"@opentelemetry/semantic-conventions": "^1.0.0",
"@types/connect": "3.4.35"
"@types/connect": "3.4.35",
"tslib": "^2.3.1"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-connect#readme",
"gitHead": "efdfc727a49090accee7fea8ff93011b6b84c1e4"
"gitHead": "f81f8a76a8f0af2101c62dbc73cde442f875d833"
}
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