Skip to content

Commit 034d61e

Browse files
committed
chore: without process.send
1 parent 31787df commit 034d61e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/collector/src/announceCycle/agentready.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ function enter(_ctx) {
152152
// TODO: Add an EventEmitter functionality for the current process
153153
// such as `instana.on('instana.collector.initialized')`.
154154
// eslint-disable-next-line no-unused-expressions
155-
process?.send?.('instana.collector.initialized');
155+
// process?.send?.('instana.collector.initialized');
156156

157+
/*
157158
if (!isMainThread) {
158159
const { parentPort } = require('worker_threads');
159160
@@ -162,6 +163,7 @@ function enter(_ctx) {
162163
parentPort.postMessage('instana.collector.initialized');
163164
}
164165
}
166+
*/
165167
}
166168

167169
function leave() {

packages/collector/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function init(userConfig = {}) {
100100
}
101101

102102
if (collectorIndexCacheKey) {
103-
process?.send?.('instana.collector.initialized');
103+
// process?.send?.('instana.collector.initialized');
104104

105105
return require.cache[collectorIndexCacheKey].exports;
106106
} else {

0 commit comments

Comments
 (0)