-
Notifications
You must be signed in to change notification settings - Fork 251
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
Live debugging #999
Live debugging #999
Conversation
* create xray service to manage the debug streams * add xray support to the prometheus.relabel component * add xray endpoint to the api * rename handler to manager * defer cleanup func * rework to add multi-streams support * more tests * additional multi delete test * add todo comment for buffer size * add error checks * improve naming and readability, split interfaces and add a check to avoid expensive string computation * move register and isregistered to a new debugRegistry interface
* add live debugging page in UI * change button size * move icon in front of text in buttons * add warning if the number of incoming lines is greater than the buffer size
* add live debugging doc * Update docs/sources/tasks/debug.md Co-authored-by: Clayton Cornell <[email protected]> * Update docs/sources/tasks/debug.md Co-authored-by: Clayton Cornell <[email protected]> * Update docs/sources/tasks/debug.md Co-authored-by: Clayton Cornell <[email protected]> * improve doc * Update docs/sources/tasks/debug.md Co-authored-by: Clayton Cornell <[email protected]> --------- Co-authored-by: Clayton Cornell <[email protected]>
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.
Looks great! I can't wait to try it!
docs/sources/tasks/debug.md
Outdated
@@ -48,6 +48,7 @@ Clicking a component in the graph navigates to the [Component detail page](#comp | |||
|
|||
### Component detail page | |||
|
|||
<!-- TODO: update this screenshot once the branch is ready to go to main because it contains an additional button now --> |
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.
It'd be nice to just upload a second screenshot under a different name. That way if we rollback this change, the old markdown will fallback to using the old screenshot.
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.
Nice work! I have a few small comments and suggestions for future improvements. I'm really looking forward to this expanding into more components :)
It's part of an imported react autoscroll component, I could not find a good way to bring it up and style it like the other buttons :( |
I think that these are two different things. The original idea of the x-ray feature is to see the data/the flow through the pipelines. Events data that you see in logs is not part of the plan. It does not replace logs but gives another tool that can be used alongside the others to troubleshoot Alloy. |
Would it be ok if I create an issue for this and it comes in a follow up PR? I would create a block for the service and would add also other options to customize it (e.g. size of the buffer). I agree that it is important but not a blocker because having access to the Alloy's API but not its config file is not a very popular scenario I guess? |
Fixed in 17aaf44 |
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!
… The stability is also updated to experimental
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
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 % one comment (screenshots look good too). Thanks!
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.
Some suggestions to remove the possessive "Alloy's"
Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
FYI I created an issue for this: #1021 |
PR Description
This PR brings the live debugging feature to main.
Which issue(s) this PR fixes
Fixes #986
Notes to the Reviewer
This PR is made from three parts that have been reviewed already:
I added these two screenshots to the media folder:
PR Checklist