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 prometheus metrics for response, queued, sent, mined, nonces #647

Closed d4mr closed 1 month ago

d4mr commented 2 months ago

PR-Codex overview

This PR adds Prometheus metrics support to the application. It introduces metrics recording for queued, mined, and sent transactions, along with a middleware for recording response metrics.

Detailed summary

The following files were skipped due to too many changes: yarn.lock, src/utils/prometheus.ts

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

socket-security[bot] commented 2 months ago

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

Package New capabilities Transitives Size Publisher
npm/bintrees@1.0.2 None 0 2.35 MB vadimg
npm/prom-client@15.1.3 filesystem, network, unsafe 0 126 kB simenb
npm/tdigest@0.1.2 None 0 83.6 kB welch

View full report↗︎