Skip to content

Commit

Permalink
Update Node.js runtime check in Agent (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhdzg authored Feb 1, 2024
1 parent 43c6d59 commit 2ad3cf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/agent/agentLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export class AgentLoader {

constructor() {
// Open Telemetry and AAD packages unsusable in older versions of Node.js runtime
if (NODE_JS_RUNTIME_MAJOR_VERSION <= 8) {
// https://github.com/open-telemetry/opentelemetry-js?tab=readme-ov-file#supported-runtimes
if (NODE_JS_RUNTIME_MAJOR_VERSION < 14) {
this._canLoad = false;
}
else {
Expand Down

0 comments on commit 2ad3cf4

Please sign in to comment.