-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Dev UI - add basic monitoring of CDI components #15040
Conversation
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.
Added a small comment/question.
extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/EventsMonitor.java
Outdated
Show resolved
Hide resolved
acf51a0
to
4913445
Compare
4913445
to
3570b99
Compare
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 played with this on some quickstarts and I think it is a great tool! Also, using CDI to monitor CDI is brilliant ;-)
Left just two minor comments, otherwise I am simply +1 for this.
...sions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationInterceptor.java
Outdated
Show resolved
Hide resolved
...s/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevConsoleProcessor.java
Outdated
Show resolved
Hide resolved
3570b99
to
2a33fb6
Compare
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 played a bit with it with my Quarkus Bot Java app.
A couple of things:
- fired events are numbered from 1. but they are sorted in anti-chronological order. So every time you fire a new event, the events are renumbered, which is weird.
- for invocation trees, I think you should had % based width for the table. Otherwise, every time I click on the + icon in the tree, the width changes, which is a bit annoying.
- still invocation trees, I find it weird you don't sum up the invocation times of the tree somehow. Maybe you should have two values. See screenshot.
Yes, the latest events/invocations are listed first and the number is just an index, a position in the table. We could just skip this column but I always find it useful when displaying a table...
Ok, I can try do something with this but I'm no CSS master ;-). (it looks ok in FF BTW)
Hm, that could be a bug with CP or something like that. The duration of the root must always be greater than the sum of the children. |
It's useful if it's stable. If it changes every time we get an event, I think it's not such a good idea. Can't you have 1. for the oldest event instead? This way, you would have a number and something that's stable. If not, I would drop it.
I think just adding
Well, you have seen my screenshot :). Who could help on this? |
525855a
to
aa05c5f
Compare
@gsmet all your commets should be addressed now ;-) |
- by default, fired events and business method invocations are monitored - quarkus.arc.dev-mode-monitoring=false disables the feature
aa05c5f
to
8cd0426
Compare
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 am just putting my green stamp here as all my previous comments were addressed.
But we should still wait until Guillaume gives his approval.
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.
Woot, thanks! That's very useful!
quarkus.arc.dev-mode-monitoring=false
disables the feature