-
Notifications
You must be signed in to change notification settings - Fork 504
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
Derive DDG from search results #445
Derive DDG from search results #445
Conversation
Do you have some ideas how that would be useful? |
@yurishkuro Its the approach that was discussed on the bi-weekly call a couple of months back - for users who want a minimal backend installation (so no flink or spark job running once a day), but still benefit from a service dependency graph showing the services involved in the traces they are interested in. |
@rubenvp8510 On the trace instance view page it is possible to switch between views by using a dropdown. Wondering if the same would work on the trace search page for the dependency view - so the region below the scatter plot could be switched between a trace instance list and the dependency view? Not sure if the region would be too small - but the benefit is that the search criteria would still be visible allowing the user to tweak the criteria and press the search button again and see the update in the dependency view. |
@objectiser yes it could be, my concern was the size of the view, but I can modify this PR and attach an screenshot so we can evaluate it. |
@rubenvp8510 I think the button should exist in the "Compare Traces" section. Something like this (except without hiding the trace name and details): This way you can select a subset of search results. It would also support making selections, then searching again, and adding selections from the second search. The DDG view would need a button to go back to search when generated in this manner, which would preserve the selected traceIDs (there is a url param that supports this). Some of the text would need to be updated of course. Something like |
@everett980 That sounds good, the only thing is that in that way there is no way to use all traces, unless I selected all traces, or am i missing something here?, I don''t see a button "select all" ,but of course we can add it. |
@rubenvp8510 yeah we would need to add a select all (or "add all" to current selection if any traces are already selected). |
Attached two screenshots with @objectiser suggestions, this does not look bad. Not sure about the suggestion of select traces for generate a deep dependency graph, Correct me if I'm wrong but I think most of the time we would want to generate the deep graph with all traces we have. (so we can call it deep dependency graph), |
I like the simplicity of being able to switch between the list and dependency graph view with a single button - so possibly if the "select individual traces" option is also required, that could be in addition? @rubenvp8510 When in the graph view, is it possible to change the search criteria, press the search button and see the graph update (i.e. without first being in the list view)? |
@objectiser yes , the graph will be updated with the new search criteria. |
8c30e9e
to
53e1635
Compare
Codecov Report
@@ Coverage Diff @@
## master #445 +/- ##
==========================================
+ Coverage 89.3% 89.43% +0.12%
==========================================
Files 189 192 +3
Lines 4434 4479 +45
Branches 1063 1073 +10
==========================================
+ Hits 3960 4006 +46
+ Misses 428 427 -1
Partials 46 46
Continue to review full report at Codecov.
|
I agree that the simplicity of this approach is very nice.
The ability to include selected traces from previous searches would be beneficial but can be tackled later on. |
e6e6629
to
831606a
Compare
@rubenvp8510 It seems as though I'm wondering if it would make sense for I believe the only change that would be necessary for |
@everett980 I totally agree with your comments. there are a couple of more changes that we need to do it other than just hidden a menu, but I don't think it will be hard to do it now that I understand better how the graph works. I'll update the PR with this, I think it will also help with the coverage, as we are reusing more parts. |
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.
Just left some minor observations and noticed the chance to reuse an existing util to simplify transformTracesToPaths
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/AltViewOptions.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.css
Outdated
Show resolved
Hide resolved
c1ca48f
to
e4ed5fa
Compare
Signed-off-by: Ruben Vargas <[email protected]>
e4ed5fa
to
f5af19f
Compare
@everett980 Are there any other issues that need to be addressed with this one, or can it be merged? |
@objectiser I gave it a quick look at the changes last week and it looked good to me. haven't had the chance to give it a final pass over yet but I should have time Monday. |
@everett980 Great, 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.
This diff looks good to me, aside from some small comments.
I am, however, complicating the situation by making conflicting changes. I have one more in the works that will hopefully be done today.
I'll handle the merge conflicts I'm creating and the comments I left, and hopefully get this merged in the next couple days.
That also might be a good point to cut a release of the UI.
packages/jaeger-ui/src/components/DeepDependencies/Header/HopsSelector/index.tsx
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/components/SearchTracePage/SearchResults/index.js
Outdated
Show resolved
Hide resolved
packages/jaeger-ui/src/model/ddg/transformTracesToPaths.test.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Everett Ross <[email protected]>
Signed-off-by: Everett Ross <[email protected]>
Signed-off-by: Everett Ross <[email protected]>
Derive DDG from search results Signed-off-by: vvvprabhakar <[email protected]>
Which problem is this PR solving?
Resolves #399
Short description of the changes
Added a button on the top right of the trace results (it does not have a button style yet)