Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add rpc logs flag #1182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Aug 29, 2024

Forgot to push before merging in the context of #1180 (comment)

Copy link

vercel bot commented Aug 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 11:52am
sepolia-frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 11:52am

@@ -746,7 +747,7 @@ function getProviderFromConfigJson(_chainId: string) {
500, // delay
5, // max. concurrency
"QUOTES_API", // cache namespace
0 // disable RPC calls logging
ENABLE_RPC_LOGS === "true" ? 100 : 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth making this env var a number of range [0, 100]? Toggling to 100 might be like trying to drink from the firehose in a situation where other things might already be going wrong, and it might have an undesirable performance impact. In the bots we run w/ 1% or something like that, but it's nice to be able to tune it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 - this makes to include a way to configure the logging in a more granular way

Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@james-a-morris
Copy link
Contributor

Is this still in flight? cc @dohaki

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.

3 participants