@opentelemetry/instrumentation-nestjs-core
Advanced tools
Comparing version 0.36.0 to 0.37.0
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
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
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
51173
312
+ Added@opentelemetry/api-logs@0.51.1(transitive)
+ Added@opentelemetry/instrumentation@0.51.1(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedimport-in-the-middle@1.7.4(transitive)
- Removed@opentelemetry/api-logs@0.50.0(transitive)
- Removed@opentelemetry/instrumentation@0.50.0(transitive)
- Removedacorn-import-assertions@1.9.0(transitive)
- Removedimport-in-the-middle@1.7.1(transitive)