Skip to content
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

Spans Table View #781

Merged
merged 18 commits into from
Aug 31, 2021
Merged

Spans Table View #781

merged 18 commits into from
Aug 31, 2021

Conversation

vvvprabhakar
Copy link
Contributor

@vvvprabhakar vvvprabhakar commented Jul 5, 2021

Signed-off-by: vvvprabhakar vvvprabhakar@gmail.com

Why trace span table? Issue(#690)
A trace with many spans trace (~20K) spans can be broken down into pieces and analyzed. Have a link with traceTimeline View as well to link both views and get the analysis of trace
Gives a detailed view of a service or an operation and its impact on a trace,

What can we achieve?

  • Filter Spans with multiple serviceName values

  • Filter Spans with multiple OperationName values

  • Filter with both ServiceName and OperationName

  • Sort based on duration and startTime

  • Each row in the table has spanID link which will take the user to that particular span in traceTimelineView

  • Either search with text on serviceName and OperatioName Columns

  • Pagination for the spans

What can we improve from here?

  • We can add SelfTime in the table as a column and make it sortable

Dependencies Used

  • Used antd for table

**Screenshot 2021-06-23 at 15 51 11
Screenshot 2021-06-23 at 15 51 20
Screenshot 2021-06-23 at 15 51 36
Screenshot 2021-06-23 at 15 52 11
**

Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
@jpkrohling
Copy link
Contributor

The tests seem to be failing. Are you able to sort them out?

Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
@vvvprabhakar
Copy link
Contributor Author

@jpkrohling Need your help in fixing this unit case(1 case)

@rubenvp8510
Copy link
Collaborator

rubenvp8510 commented Jul 15, 2021

Hi @vvvprabhakar there is a small bug on the AltViewOptions tests, in the 'track dropdown menu' case:

Check this commit I did on my own fork:

rubenvp8510@09664d9

It was a coincidence that in the past link2.length === links2.length, but now that you added another entry the bug comes up and the test start to fail.

With this change your tests should pass, at least it pass on my local. :)

The code overall looks good, Once the tests are fixed I'll do another review.

@rubenvp8510 rubenvp8510 self-assigned this Jul 15, 2021
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
@vvvprabhakar
Copy link
Contributor Author

@rubenvp8510 Thanks a lot man

@vvvprabhakar vvvprabhakar changed the title Spans Table View WIP:Spans Table View Jul 16, 2021
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
@vvvprabhakar vvvprabhakar changed the title WIP:Spans Table View Spans Table View Jul 17, 2021
@vvvprabhakar
Copy link
Contributor Author

@rubenvp8510 can you review once
I have optimised the filtering logic also

@vvvprabhakar
Copy link
Contributor Author

Once you get time can you please review this

@jpkrohling
Copy link
Contributor

ping @rubenvp8510

@codecov
Copy link

codecov bot commented Jul 21, 2021

Codecov Report

Merging #781 (5d9eed2) into master (0c1fcd1) will increase coverage by 0.01%.
The diff coverage is 96.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #781      +/-   ##
==========================================
+ Coverage   95.07%   95.09%   +0.01%     
==========================================
  Files         230      231       +1     
  Lines        7010     7097      +87     
  Branches     1745     1759      +14     
==========================================
+ Hits         6665     6749      +84     
- Misses        339      342       +3     
  Partials        6        6              
Impacted Files Coverage Δ
...mponents/TracePage/TraceStatistics/tableValues.tsx 94.44% <ø> (ø)
packages/jaeger-ui/src/utils/tracking/utils.tsx 80.00% <ø> (ø)
...i/src/components/TracePage/TraceSpanView/index.tsx 95.08% <95.08%> (ø)
...nents/TracePage/TracePageHeader/AltViewOptions.tsx 100.00% <100.00%> (ø)
...racePage/TracePageHeader/TracePageHeader.track.tsx 100.00% <100.00%> (ø)
...kages/jaeger-ui/src/components/TracePage/index.tsx 100.00% <100.00%> (ø)
packages/jaeger-ui/src/utils/date.tsx 94.36% <100.00%> (+1.91%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b651416...5d9eed2. Read the comment docs.

@rubenvp8510
Copy link
Collaborator

I'll review this tomorrow morning, overall looks good but I want to see it on detail

const operationNames = serviceNameOperationsMap.get(span.process.serviceName) || [];
operationNames.push(span.operationName);
serviceNameOperationsMap.set(span.process.serviceName, operationNames);
return { serviceNamesList, operationNamesList };
Copy link
Collaborator

@rubenvp8510 rubenvp8510 Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are your returning this ? where this is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not using it removed

@rubenvp8510
Copy link
Collaborator

Can we add a couple of tests to the new views? at least basic testing?

Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
@vvvprabhakar
Copy link
Contributor Author

@rubenvp8510 made the changes you proposed
Can you just reverify them once you get the time?
Thanks in Adavance

@rubenvp8510
Copy link
Collaborator

Thanks for doing the changes!

I'll review tomorrow morning!

@vvvprabhakar
Copy link
Contributor Author

Did you get a chance to see this?

it('Should change value when onChange was called', () => {
const event = ['service2'];
wrapper = shallow(<TraceSpanView {...defaultProps} />);
// wrapper.state('filtered.process.serviceName', ['service1', 'service2']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment please.

@rubenvp8510
Copy link
Collaborator

Small comment, overall looks good. I just need to do a quick smoke test and will merge.

Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
@vvvprabhakar
Copy link
Contributor Author

@rubenvp8510 Removed the line and pushed it
Thanks for taking time and reviewing it

@vvvprabhakar
Copy link
Contributor Author

@rubenvp8510 did you get time to see this ?

rubenvp8510
rubenvp8510 previously approved these changes Aug 23, 2021
@rubenvp8510
Copy link
Collaborator

rubenvp8510 commented Aug 23, 2021

I've already approved but it will be good if we can increase the coverage a little bit. may be we can write tests for https://github.com/jaegertracing/jaeger-ui/pull/781/files#diff-00ec9fc101b0b3db820b0352d451f88833915d001216cf78d40ac1178a65be28R148

@rubenvp8510 rubenvp8510 enabled auto-merge (squash) August 23, 2021 13:25
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
auto-merge was automatically disabled August 29, 2021 19:20

Head branch was pushed to by a user without write access

@vvvprabhakar
Copy link
Contributor Author

vvvprabhakar commented Aug 29, 2021

Thanks for reviewing it
@rubenvp8510 updated the test cases also
When you have free time just please do the review, sorry for bothering you

@rubenvp8510 rubenvp8510 enabled auto-merge (squash) August 30, 2021 03:50
auto-merge was automatically disabled August 30, 2021 05:47

Head branch was pushed to by a user without write access

@vvvprabhakar
Copy link
Contributor Author

Coverage was 0.05% less, so covered it, when you have time just check this @rubenvp8510
Thanks

Copy link
Collaborator

@rubenvp8510 rubenvp8510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rubenvp8510 rubenvp8510 merged commit ad60380 into jaegertracing:master Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants