Skip to content

Commit

Permalink
chore: fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamohanan committed Jun 17, 2024
1 parent 3b0d714 commit 025d36f
Show file tree
Hide file tree
Showing 81 changed files with 410 additions and 1,306 deletions.
12 changes: 10 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@
"socket.io-client": "^4.7.5",
"sqs-consumer": "^10.3.0",
"sqs-consumer-v5": "npm:sqs-consumer@^5.7.0",
"square-calc": "^2.2.3",
"square-calc": "^3.1.0",
"square-calc-v2": "npm:square-calc@^2.2.3",
"stealthy-require": "1.1.1",
"superagent": "^9.0.2",
"tedious": "^15.1.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/aws-fargate/esm-loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@
*/

import './src/index.js';
// Here we exports all named exports from '@instana/core/iitm-loader.mjs', enabling
// integration of import-in-the-middle (IITM) for Native ESM module support.
export * from '@instana/core/iitm-loader.mjs';
11 changes: 6 additions & 5 deletions packages/aws-fargate/esm-register.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Previously, loading the Instana collector within the loader and after the update ESM support
* no longer working with v18.19 and above. To address this, we've opted to load the Instana
* collector in the main thread using --import.
* Additionally, we aim to incorporate native ESM support by utilizing the node register method,
* Additionally, we incorporated native ESM support by utilizing the node register method,
* enabling customization of the ESM loader with 'import-in-the-middle'.
*
* Usage:
Expand All @@ -19,7 +19,8 @@
// Import the initialization module for aws-fargate collector; it self-initializes upon import
// and it should be executed in the main thread.
import './src/index.js';

// We plan to utilize this for adding native ESM support in the near future
// import { register } from 'node:module';
// register(./loader.mjs, import.meta.url);
import { register } from 'node:module';
// ESM module resolution and loading are facilitated by registering `@instana/core/iitm-loader.mjs`, which exports
// import-in-the-middle(IITM) hooks. This registration can be accomplished using the register method from node:module.
// see: https://nodejs.org/api/module.html#customization-hooks
register('@instana/core/iitm-loader.mjs', import.meta.url);
3 changes: 3 additions & 0 deletions packages/azure-container-services/esm-loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@
*/

import './src/index.js';
// Here we exports all named exports from '@instana/core/iitm-loader.mjs', enabling
// integration of import-in-the-middle (IITM) for Native ESM module support.
export * from '@instana/core/iitm-loader.mjs';
11 changes: 6 additions & 5 deletions packages/azure-container-services/esm-register.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* see https://github.com/nodejs/node/pull/44710.
* Previously, loading the Instana collector within the loader and after the update ESM support
* no longer working with v18.19 and above. To address this, we've opted to load the Instana
* collector in the main thread using --import. Additionally, we aim to incorporate native ESM
* collector in the main thread using --import. Additionally, we incorporated native ESM
* support by utilizing the node register method, enabling customization of the ESM loader
* with 'import-in-the-middle'.
*
Expand All @@ -19,7 +19,8 @@
// Import the initialization module for azure-container-services collector; it self-initializes upon import
// and it should be executed in the main thread.
import './src/index.js';

// We plan to utilize this for adding native ESM support in the near future
// import { register } from 'node:module';
// register(./loader.mjs, import.meta.url);
import { register } from 'node:module';
// ESM module resolution and loading are facilitated by registering `@instana/core/iitm-loader.mjs`, which exports
// import-in-the-middle(IITM) hooks. This registration can be accomplished using the register method from node:module.
// see: https://nodejs.org/api/module.html#customization-hooks
register('@instana/core/iitm-loader.mjs', import.meta.url);
23 changes: 0 additions & 23 deletions packages/collector/esm-app/index.mjs

This file was deleted.

Loading

0 comments on commit 025d36f

Please sign in to comment.