thirdweb-dev / engine

The most powerful backend engine for web3 apps.
https://thirdweb.com/engine
Apache License 2.0
152 stars 59 forks source link

added dd tracing #584

Closed AmineAfia closed 3 months ago

AmineAfia commented 3 months ago

Changes

How this PR will be tested

Output

(Example: Screenshot/GIF for UI changes, cURL output for API changes)


PR-Codex overview

This PR introduces Datadog tracing (dd-trace), enabling distributed tracing in the application. It also adds related dependencies and configurations.

Detailed summary

The following files were skipped due to too many changes: yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

socket-security[bot] commented 3 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@datadog/native-appsec@8.0.1 None 0 15.6 MB datadog
npm/@datadog/native-iast-rewriter@2.3.1 filesystem 0 2.15 MB datadog
npm/@datadog/native-iast-taint-tracking@3.0.0 None 0 11.1 MB datadog
npm/@datadog/native-metrics@2.0.0 None 0 899 kB datadog
npm/@datadog/pprof@5.3.0 filesystem 0 9.85 MB datadog
npm/@datadog/sketches-js@2.1.1 None 0 110 kB datadog
npm/@opentelemetry/api@1.8.0 None 0 1.21 MB pichlermarc
npm/@opentelemetry/core@1.25.1 environment, unsafe 0 877 kB pichlermarc
npm/@opentelemetry/semantic-conventions@1.25.1 None 0 1.66 MB pichlermarc
npm/acorn-import-attributes@1.9.5 None 0 32 kB xtuc
npm/cjs-module-lexer@1.3.1 None 0 139 kB guybedford
npm/crypto-randomuuid@1.0.0 None 0 11.2 kB qard
npm/dc-polyfill@0.1.6 unsafe 0 24.6 kB datadog
npm/dd-trace@5.19.0 environment, eval, filesystem, network, shell, unsafe 0 1.88 MB datadog
npm/delay@5.0.0 None 0 11.2 kB sindresorhus
npm/detect-newline@3.1.0 None 0 3.77 kB sindresorhus
npm/event-lite@0.1.3 None 0 11 kB kawanet
npm/import-in-the-middle@1.10.0 unsafe 0 102 kB nodejs-foundation
npm/int64-buffer@0.1.10 None 0 49.2 kB kawanet
npm/isarray@1.0.0 None 0 3.89 kB juliangruber
npm/istanbul-lib-coverage@3.2.0 None 0 29.3 kB oss-bot
npm/jest-docblock@29.7.0 None 0 8.99 kB simenb
npm/koalas@1.0.2 None 0 6.46 kB doowb
npm/limiter@1.1.5 None 0 23.2 kB jhurliman
npm/lodash.sortby@4.7.0 None 0 75.8 kB jdalton
npm/module-details-from-path@1.0.3 None 0 4.47 kB watson
npm/msgpack-lite@0.1.26 network 0 201 kB kawanet
npm/opentracing@0.14.7 None 0 195 kB yurishkuro
npm/pprof-format@2.1.0 None 0 112 kB datadog
npm/retry@0.13.1 None 0 18.9 kB tim-kos
npm/shell-quote@1.8.1 None 0 45 kB ljharb
npm/tlhunter-sorted-set@0.1.0 None 0 24.9 kB tlhunter

🚮 Removed packages: npm/istanbul-lib-coverage@3.2.2

View full report↗︎

socket-security[bot] commented 3 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/@datadog/native-metrics@2.0.0
  • Install script: install
  • Source: exit 0
🚫
Install scripts npm/@datadog/pprof@5.3.0
  • Install script: install
  • Source: exit 0
🚫
Install scripts npm/@datadog/native-appsec@8.0.1
  • Install script: install
  • Source: exit 0
🚫
Install scripts npm/@datadog/native-iast-taint-tracking@3.0.0
  • Install script: install
  • Source: exit 0
🚫
Install scripts npm/dd-trace@5.19.0
  • Install script: preinstall
  • Source: node scripts/preinstall.js
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/@datadog/native-metrics@2.0.0
  • @SocketSecurity ignore npm/@datadog/pprof@5.3.0
  • @SocketSecurity ignore npm/@datadog/native-appsec@8.0.1
  • @SocketSecurity ignore npm/@datadog/native-iast-taint-tracking@3.0.0
  • @SocketSecurity ignore npm/dd-trace@5.19.0