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

Usage of a helper for trace name when preparing trace data #544

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

swapster
Copy link
Contributor

In continue of #541.

Now there is a getTraceName() method that can deal with a "root spans" with missing references. But it doesn't use when traces data transforms for a "Search" and "Compare" pages.
Seems like it should be using here.

Usage of a helper for trace name resolution when preparing traces data.
It affects Search and Compare pages.

Signed-off-by: Valerii Varankin <[email protected]>
@codecov
Copy link

codecov bot commented Mar 13, 2020

Codecov Report

Merging #544 into master will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #544      +/-   ##
==========================================
- Coverage   93.00%   92.89%   -0.12%     
==========================================
  Files         197      200       +3     
  Lines        4848     4912      +64     
  Branches     1177     1212      +35     
==========================================
+ Hits         4509     4563      +54     
- Misses        299      309      +10     
  Partials       40       40              
Impacted Files Coverage Δ
...kages/jaeger-ui/src/model/transform-trace-data.tsx 89.41% <100.00%> (+0.90%) ⬆️
...ackages/jaeger-ui/src/model/trace-dag/TraceDag.tsx 63.04% <0.00%> (-15.68%) ⬇️
.../jaeger-ui/src/components/DeepDependencies/url.tsx 97.50% <0.00%> (-2.50%) ⬇️
packages/jaeger-ui/src/api/jaeger.js 97.72% <0.00%> (-2.28%) ⬇️
...eViewer/TimelineHeaderRow/TimelineViewingLayer.tsx 91.52% <0.00%> (-1.70%) ⬇️
...aeger-ui/src/components/DeepDependencies/index.tsx 99.12% <0.00%> (-0.88%) ⬇️
...-ui/src/components/TracePage/TraceGraph/OpNode.tsx 81.81% <0.00%> (-0.80%) ⬇️
packages/jaeger-ui/src/model/link-patterns.tsx 93.82% <0.00%> (-0.62%) ⬇️
...nents/TracePage/TraceGraph/calculateTraceDagEV.tsx 92.68% <0.00%> (-0.18%) ⬇️
...src/components/TracePage/TraceGraph/TraceGraph.tsx 95.00% <0.00%> (ø)
... and 8 more

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 5f86618...246db52. Read the comment docs.

@bogdanov1609
Copy link

Any updates here?

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Can there be a unit test?

* Test for trace without an ID
* Test for trace with remote (missing) root span
* Test for trace with root span without refs

Signed-off-by: Valerii Varankin <[email protected]>
@swapster
Copy link
Contributor Author

swapster commented Apr 6, 2020

Can there be a unit test?

Added some tests.

@swapster swapster requested a review from yurishkuro April 6, 2020 15:00
key: 'http.status_code',
type: 'float64',
value: 200,
},
Copy link
Member

Choose a reason for hiding this comment

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

Nit: are these tags relevant to the functionality being tested? They don't look like it. Could you please trim the fixtures to minimally required data?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds reasonable, thanks :)
Removed unnecessary tags.

Tags has been removed since it are not relevant to the functionality being tested

Signed-off-by: Valerii Varankin <[email protected]>
@swapster swapster requested a review from yurishkuro April 7, 2020 14:04
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@yurishkuro yurishkuro merged commit 2ba4e7f into jaegertracing:master Apr 8, 2020
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
* Usage of getTraceName() when preparing trace data

Usage of a helper for trace name resolution when preparing traces data.
It affects Search and Compare pages.

Signed-off-by: Valerii Varankin <[email protected]>

* Tests for transform-trace-data helper

* Test for trace without an ID
* Test for trace with remote (missing) root span
* Test for trace with root span without refs

Signed-off-by: Valerii Varankin <[email protected]>

* Removed unnecessary data from tests

Tags has been removed since it are not relevant to the functionality being tested

Signed-off-by: Valerii Varankin <[email protected]>
Signed-off-by: vvvprabhakar <[email protected]>
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.

3 participants