@instana/autoprofile
Advanced tools
Comparing version 2.2.0 to 2.4.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.4.0](https://github.com/instana/nodejs/compare/v2.3.0...v2.4.0) (2022-05-25) | ||
### Features | ||
* added node 18 support ([#529](https://github.com/instana/nodejs/issues/529)) ([b355a7c](https://github.com/instana/nodejs/commit/b355a7ca225bf9a06841619aae64bdefa1c0957a)) | ||
# [2.2.0](https://github.com/instana/nodejs/compare/v2.1.0...v2.2.0) (2022-05-18) | ||
@@ -8,0 +19,0 @@ |
@@ -43,3 +43,3 @@ /* | ||
createKey(methodName, fileName, fileLine) { | ||
return methodName + ' (' + fileName + ':' + fileLine + ')'; | ||
return `${methodName} (${fileName}:${fileLine})`; | ||
} | ||
@@ -109,3 +109,3 @@ | ||
this.profiler = profiler; | ||
this.processId = '' + process.pid; | ||
this.processId = `${process.pid}`; | ||
this.id = profiler.utils.generateUuid(); | ||
@@ -112,0 +112,0 @@ this.runtime = Profile.c.RUNTIME_NODEJS; |
@@ -80,3 +80,3 @@ /* | ||
if (this.profileDuration > this.config.maxProfileDuration) { | ||
this.profiler.debug(this.config.logPrefix + ': max profiling duration reached.'); | ||
this.profiler.debug(`${this.config.logPrefix}: max profiling duration reached.`); | ||
return null; | ||
@@ -86,7 +86,7 @@ } | ||
if (this.profiler.samplerActive) { | ||
this.profiler.debug(this.config.logPrefix + ': sampler lock exists.'); | ||
this.profiler.debug(`${this.config.logPrefix}: sampler lock exists.`); | ||
return null; | ||
} | ||
this.profiler.samplerActive = true; | ||
this.profiler.debug(this.config.logPrefix + ': started.'); | ||
this.profiler.debug(`${this.config.logPrefix}: started.`); | ||
@@ -115,3 +115,3 @@ try { | ||
self.profiler.samplerActive = false; | ||
self.profiler.debug(self.config.logPrefix + ': stopped.'); | ||
self.profiler.debug(`${self.config.logPrefix}: stopped.`); | ||
} catch (err) { | ||
@@ -151,3 +151,3 @@ self.profiler.samplerActive = false; | ||
} | ||
this.profiler.debug(this.config.logPrefix + ': reporting profile.'); | ||
this.profiler.debug(`${this.config.logPrefix}: reporting profile.`); | ||
@@ -158,3 +158,3 @@ const profile = this.sampler.buildProfile(this.profileDuration, Date.now() - this.profileStartTs); | ||
if (externalPid) { | ||
profile.processId = '' + externalPid; | ||
profile.processId = `${externalPid}`; | ||
} | ||
@@ -161,0 +161,0 @@ |
{ | ||
"name": "@instana/autoprofile", | ||
"version": "2.2.0", | ||
"version": "2.4.0", | ||
"description": "Automatic Node.js Profiler", | ||
@@ -72,3 +72,3 @@ "author": { | ||
"license": "BSD-3-Clause", | ||
"gitHead": "5f039b739bf6726e6a0da401721f6ea790d9850d" | ||
"gitHead": "0fd50fe5b4efbc75e45816d4caf37f3c6ae97b17" | ||
} |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
432662
34
16