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

[hotrod] Add links to traces #2536

Merged
merged 6 commits into from
Oct 6, 2020

Conversation

yurishkuro
Copy link
Member

Wanted to add this long time ago - a link to the trace from each request using the search URL.

image

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro requested a review from a team as a code owner October 5, 2020 03:32
Signed-off-by: Yuri Shkuro <github@ysh.us>
@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #2536 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2536      +/-   ##
==========================================
+ Coverage   95.32%   95.35%   +0.02%     
==========================================
  Files         208      208              
  Lines        9248     9248              
==========================================
+ Hits         8816     8818       +2     
+ Misses        355      353       -2     
  Partials       77       77              
Impacted Files Coverage Δ
...lugin/sampling/strategystore/adaptive/processor.go 100.00% <0.00%> (+0.92%) ⬆️

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 1d37ebc...312ad8e. Read the comment docs.

@@ -85,7 +85,8 @@ <h4><em>Rides On Demand</em></h4>
var after = Date.now();
console.log(data);
var duration = formatDuration(data.ETA);
freshCar.html('HotROD <b>' + data.Driver + '</b> arriving in ' + duration + ' [req: ' + requestID + ', latency: ' + (after-before) + 'ms]');
var trace = 'http://localhost:16686/search?limit=20&lookback=1h&service=frontend&tags=%7B%22driver%22%3A%22' + data.Driver + '%22%7D';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it too hard to add a field somewhere with the location of the Jaeger installation? Or to copy the search terms, so that people can just paste into their remote Jaeger instance?

Copy link
Member

@joe-elliott joe-elliott Oct 5, 2020

Choose a reason for hiding this comment

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

I'm concerned that hotrod is used in a lot of different examples and this link may not always be valid. I'd say in most cases where people are running hotrod localhost:16686 will be the Jaeger UI, but when it's not this may be confusing.

I do think this is a cool feature for demoing tracing though and wonder the same thing as @jpkrohling

Is it too hard to add a field somewhere with the location of the Jaeger installation?

Copy link
Member Author

Choose a reason for hiding this comment

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

added config option -j http://localhost:16686

yurishkuro and others added 4 commits October 5, 2020 19:13
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@yurishkuro yurishkuro merged commit 7814d82 into jaegertracing:master Oct 6, 2020
@yurishkuro yurishkuro deleted the hotrod-link-to-trace branch October 6, 2020 15:13
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