-
Notifications
You must be signed in to change notification settings - Fork 42
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still in flight? cc @dohaki |
Forgot to push before merging in the context of #1180 (comment)