-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Improve debug output #58467
[APM] Improve debug output #58467
Conversation
Pinging @elastic/apm-ui (Team:apm) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
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 works great and looks very nice.
I think we should be using the built-in logger
provided on the server context instead of console.log
.
I agree. I think we use |
I agree that it's easier to copy/paste, but I disagree that we should make an exception, unless there's agreement from the platform team. Most terminals also support rectangular selection. In VSCode's I can hold option. |
How will that help in the above case where it's not a rectangle?
I agree it makes sense for actual logging to use the official logger. But in this case we don't care about logging as such - we want to output something to stdout for debugging purposes. |
I'll +1 the current approach, given that this is a debugging feature not intended for users, and is explicitly opt-in, I can't quite see the benefit of using the platform logger, and there are clear cons (AFAICT). |
I still disagree, but not strongly enough to block merging this. |
@dgieselaar and I had a discussion earlier whether we should send the debug info to the client. This would make it much easier for users who don't have access to Kibana logs - but could also pose security threats. @smith WDYT about that idea? |
I like it, since half the time I turn the debug mode on and am confused when there's nothing in my devtools console. As long as it doesn't make the code too complicated. I'd rather have the hassle of having to look in kibana logs than adding unneeded complexity to our code base. |
Okay, I'm merging this now, and then we can look into sending it to the client in a follow-up. |
Highlight errors
Debugging for non-search requests