You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@htrace.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2015/12/09 20:45:11 UTC

[jira] [Commented] (HTRACE-321) web ui should have a permalink to particular search/zoom

    [ https://issues.apache.org/jira/browse/HTRACE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049270#comment-15049270 ] 

Colin Patrick McCabe commented on HTRACE-321:
---------------------------------------------

This is something that I would like too.  I guess we could try to save the state of everything and encode it in a URL.

I would imagine our current state would be at least:
* The Predicates which are active. We can just convert them to JSON.  Order matters, so we can just make it an array.
* Spans on screen (including the whole graph).  These are pretty short, just the hex ID.
* Begin / End zoom.  This is just two numbers.

We probably should also save this state somewhere when switching "tabs" (i.e. Backbone views) so that people don't lose all their work when they switch tabs.

The hairy parts are probably:
1. If people are using the span reaper, theoretically your link could reference a span which has been "aged out" because it's too old.
2. There is some fiddly stuff with which arrows are displayed and which not.

I think #1 is not a huge issue since the span age-out time should be very long.
For #2, we probably just have to add some extra state to the URL to make it look nice.  We probably should encapsulate this in the JS classes as a save/restore method to make it easy.

> web ui should have a permalink to particular search/zoom
> --------------------------------------------------------
>
>                 Key: HTRACE-321
>                 URL: https://issues.apache.org/jira/browse/HTRACE-321
>             Project: HTrace
>          Issue Type: Improvement
>          Components: gui
>    Affects Versions: 4.0.1
>            Reporter: Sean Busbey
>
> while working through the web app to find spans and zoom in on a particular problem area, I'd like to be able to save a permalink so that I can
> 1) reference the place myself later
> 2) share it with someone else



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)