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

getting svg file from trace #268

Open
ogis-hashi opened this issue Oct 7, 2016 · 3 comments
Open

getting svg file from trace #268

ogis-hashi opened this issue Oct 7, 2016 · 3 comments

Comments

@ogis-hashi
Copy link

I am trying to get svg file from trace when I add wrap-trace as follows:

(def handler 
  (-> customer
      wrap-params
      (wrap-trace :header :ui)))

I can see a trace graph using the following url:
http://localhost:3000/x-liberator/requests/

But the image I can see is not clean and I cannot see the detail of the graph.
Is there any way to get a clear image or get svg for trace graph ?

Thanks,
MH

@ordnungswidrig
Copy link
Member

Can you attach a screenshot please? I'm not sure what you mean with "clean" exactly.

@ogis-hashi
Copy link
Author

Thank you for your reply.
The image I've obtained is as follows:
liberator

I'd like to resize to see texts clearer in boxes and near lines.

@ordnungswidrig
Copy link
Member

I'm working on an improved version of the decision graph currently. In the meanwhile you can use this javascript snippet to zoom the graph:

document.getElementsByTagName("svg")[0].style.width="200%" document.getElementsByTagName("svg")[0].style.height="200%";

This is a bit of a hassle but does the job. Maybe we can include svg panning into the request console, we have that in the documentation. .

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

No branches or pull requests

2 participants