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

Fix trace scoped links not supporting numeric fields #538

Merged

Conversation

william-tran
Copy link
Contributor

@william-tran william-tran commented Mar 5, 2020

From https://www.jaegertracing.io/docs/1.17/frontend-ui/#link-patterns

"For traces, the supported template fields are: duration, endTime,
startTime, traceName and traceID."

Fixes #465

Signed-off-by: Will Tran [email protected]

Which problem is this PR solving?

  • using duration, endTime, and startTime in trace scoped links caused the link to not display, counter to documentation.

Short description of the changes

  • Added missing typeof
  • Improved test to cover all documented keys

From https://www.jaegertracing.io/docs/1.17/frontend-ui/#link-patterns

"For traces, the supported template fields are: duration, endTime,
startTime, traceName and traceID."

Fixes jaegertracing#465

Signed-off-by: Will Tran <[email protected]>
@codecov
Copy link

codecov bot commented Mar 5, 2020

Codecov Report

Merging #538 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #538      +/-   ##
==========================================
- Coverage   92.97%   92.93%   -0.05%     
==========================================
  Files         197      197              
  Lines        4840     4840              
  Branches     1174     1174              
==========================================
- Hits         4500     4498       -2     
- Misses        300      302       +2     
  Partials       40       40
Impacted Files Coverage Δ
packages/jaeger-ui/src/model/link-patterns.tsx 94.44% <100%> (ø) ⬆️
...eViewer/TimelineHeaderRow/TimelineViewingLayer.tsx 88.13% <0%> (-3.39%) ⬇️

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 d7bbc7b...a4c13f1. Read the comment docs.

Copy link
Collaborator

@everett980 everett980 left a comment

Choose a reason for hiding this comment

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

Good catch, thanks for fixing William!

@everett980 everett980 merged commit 0882bde into jaegertracing:master Mar 6, 2020
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
From https://www.jaegertracing.io/docs/1.17/frontend-ui/#link-patterns

"For traces, the supported template fields are: duration, endTime,
startTime, traceName and traceID."

Fixes jaegertracing#465

Signed-off-by: Will Tran <[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.

Support trace-scoped external links similar to tag links
3 participants