Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-nestjs-core

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-nestjs-core - npm Package Compare versions

Comparing version 0.36.0 to 0.37.0

8

build/src/instrumentation.d.ts
import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition, InstrumentationNodeModuleFile } from '@opentelemetry/instrumentation';
export declare class Instrumentation extends InstrumentationBase<any> {
export declare class Instrumentation extends InstrumentationBase {
static readonly COMPONENT = "@nestjs/core";

@@ -8,7 +8,7 @@ static readonly COMMON_ATTRIBUTES: {

constructor(config?: InstrumentationConfig);
init(): InstrumentationNodeModuleDefinition<any>;
getNestFactoryFileInstrumentation(versions: string[]): InstrumentationNodeModuleFile<any>;
getRouterExecutionContextFileInstrumentation(versions: string[]): InstrumentationNodeModuleFile<any>;
init(): InstrumentationNodeModuleDefinition;
getNestFactoryFileInstrumentation(versions: string[]): InstrumentationNodeModuleFile;
getRouterExecutionContextFileInstrumentation(versions: string[]): InstrumentationNodeModuleFile;
private ensureWrapped;
}
//# sourceMappingURL=instrumentation.d.ts.map

@@ -29,10 +29,3 @@ "use strict";

init() {
const module = new instrumentation_1.InstrumentationNodeModuleDefinition(Instrumentation.COMPONENT, ['>=4.0.0'], (moduleExports, moduleVersion) => {
this._diag.debug(`Patching ${Instrumentation.COMPONENT}@${moduleVersion}`);
return moduleExports;
}, (moduleExports, moduleVersion) => {
this._diag.debug(`Unpatching ${Instrumentation.COMPONENT}@${moduleVersion}`);
if (moduleExports === undefined)
return;
});
const module = new instrumentation_1.InstrumentationNodeModuleDefinition(Instrumentation.COMPONENT, ['>=4.0.0']);
module.files.push(this.getNestFactoryFileInstrumentation(['>=4.0.0']), this.getRouterExecutionContextFileInstrumentation(['>=4.0.0']));

@@ -43,3 +36,3 @@ return module;

return new instrumentation_1.InstrumentationNodeModuleFile('@nestjs/core/nest-factory.js', versions, (NestFactoryStatic, moduleVersion) => {
this.ensureWrapped(moduleVersion, NestFactoryStatic.NestFactoryStatic.prototype, 'create', createWrapNestFactoryCreate(this.tracer, moduleVersion));
this.ensureWrapped(NestFactoryStatic.NestFactoryStatic.prototype, 'create', createWrapNestFactoryCreate(this.tracer, moduleVersion));
return NestFactoryStatic;

@@ -52,3 +45,3 @@ }, (NestFactoryStatic) => {

return new instrumentation_1.InstrumentationNodeModuleFile('@nestjs/core/router/router-execution-context.js', versions, (RouterExecutionContext, moduleVersion) => {
this.ensureWrapped(moduleVersion, RouterExecutionContext.RouterExecutionContext.prototype, 'create', createWrapCreateHandler(this.tracer, moduleVersion));
this.ensureWrapped(RouterExecutionContext.RouterExecutionContext.prototype, 'create', createWrapCreateHandler(this.tracer, moduleVersion));
return RouterExecutionContext;

@@ -59,4 +52,3 @@ }, (RouterExecutionContext) => {

}
ensureWrapped(moduleVersion, obj, methodName, wrapper) {
this._diag.debug(`Applying ${methodName} patch for ${Instrumentation.COMPONENT}@${moduleVersion}`);
ensureWrapped(obj, methodName, wrapper) {
if ((0, instrumentation_1.isWrapped)(obj[methodName])) {

@@ -63,0 +55,0 @@ this._unwrap(obj, methodName);

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

export declare const VERSION = "0.36.0";
export declare const VERSION = "0.37.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -73,7 +73,7 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/instrumentation": "^0.50.0",
"@opentelemetry/instrumentation": "^0.51.0",
"@opentelemetry/semantic-conventions": "^1.0.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-nestjs-core#readme",
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb"
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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