Skip to content

[Snyk] Fix for 1 vulnerabilities - #26

Open
malhanpraveen wants to merge 1 commit into
masterfrom
snyk-fix-d0ca6710e7f6d18a0d7686926dba2806
Open

malhanpraveen wants to merge 1 commit into
masterfrom
snyk-fix-d0ca6710e7f6d18a0d7686926dba2806

Conversation

@malhanpraveen

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
⚠️ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Uncaught Exception
SNYK-JS-OPENTELEMETRYPROPAGATORJAEGER-17901201
  828  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Uncaught Exception

@malhanpraveen

Copy link
Copy Markdown
Author

Merge Risk: High

This upgrade involves a major version jump for the OpenTelemetry JavaScript SDK (to v2.0.0 for stable packages and v0.200.0 for experimental ones), introducing significant breaking changes that require both environment updates and code modifications.

Key Breaking Changes:

  • Node.js Runtime Requirement: Support for Node.js 14 and 16 has been dropped. The new minimum required versions are ^18.19.0 or >=20.6.0.
  • API and Constructor Changes: The constructors for several key classes, including BatchSpanProcessor and SimpleSpanProcessor, have been refactored. They now accept a single options object instead of multiple arguments.
    • Before: new BatchSpanProcessor(exporter, { maxQueueSize: 1000 })
    • After: new BatchSpanProcessor({ exporter, maxQueueSize: 1000 })
  • Package Imports: The @opentelemetry/sdk-node package has deprecated the re-exporting of other OpenTelemetry packages. You should now import directly from the specific packages like @opentelemetry/sdk-trace-node.
  • Package Consolidation: A new @opentelemetry/sdk-trace package has been introduced to eventually replace @opentelemetry/sdk-trace-node and @opentelemetry/sdk-trace-web.

Source: OpenTelemetry JS SDK 2.0 Announcement, GitHub Release Notes

Recommendation: This upgrade will require careful review and code changes. Developers must verify their Node.js version, update constructor calls for processors, and change import statements to directly reference the required OTel packages instead of relying on re-exports from @opentelemetry/sdk-node.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants