-
Notifications
You must be signed in to change notification settings - Fork 586
[DON'T MERGE] Various observability improvement #17491
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
base: compatible
Are you sure you want to change the base?
Conversation
!ci-build-me |
!ci-build-me |
!ci-bypass-changelog |
@@ -531,6 +531,14 @@ let setup_local_server ?(client_trustlist = []) ?rest_server_port | |||
~metadata: | |||
[ ("uri", `String (Uri.to_string uri)) | |||
; ("context", `String "rest_server") | |||
; ( "request" | |||
, `String | |||
( Request.sexp_of_t req |
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.
these cohttp type can't be convert to json, so unfortunate
src/app/cli/src/init/mina_run.ml
Outdated
@@ -531,6 +531,14 @@ let setup_local_server ?(client_trustlist = []) ?rest_server_port | |||
~metadata: | |||
[ ("uri", `String (Uri.to_string uri)) | |||
; ("context", `String "rest_server") | |||
; ( "request" |
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.
Nit: it is a fun way to DDOS as we could send large requests and force the log (which require some computations).
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.
I approved, despite this ^.
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.
Well, that could happen before. This PR make it more severe.
I think maybe we can have build disabled those debug logs? Like maybe it could happen at ppx level.
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.
I think maybe we can have build disabled those debug logs?
Yes, we could think about that later.
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.
LGTM.
src/app/cli/src/init/mina_run.ml
Outdated
@@ -531,6 +531,14 @@ let setup_local_server ?(client_trustlist = []) ?rest_server_port | |||
~metadata: | |||
[ ("uri", `String (Uri.to_string uri)) | |||
; ("context", `String "rest_server") | |||
; ( "request" |
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.
This could be moved to a spam
or a log of a lower level than debug.
I've no idea what's happening, here's a graphql log entry
the sexp doesn't contain anything meaningful. |
Draft for now. |
Status: Danny worried it would make nodes very prone to DDOS. we are considering improve the logging utilities and then merge this.