sourcegraph / appdash

Application tracing system for Go, based on Google's Dapper.
https://sourcegraph.com
Other
1.72k stars 137 forks source link

Add the ability to import and export single traces #46

Closed slimsag closed 9 years ago

slimsag commented 9 years ago

This change adds the ability to import and export single traces. A trace captured on one Appdash instance can be shared with other people as standard JSON-encoded text and imported directly into another retaining all information about the trace (spans, annotations, etc).

When viewing a specific trace there is now a "Copy as JSON" link to the right of the trace ID, for example:

screen shot 2015-03-12 at 10 01 31 pm


At which point the JSON-encoded trace will be copied to your clipboard:

screen shot 2015-03-12 at 10 04 05 pm


On the Traces overview page (/traces) there is a new "Import JSON" button:

screen shot 2015-03-12 at 10 06 23 pm


Clicking the button slides out a textarea where you can paste a previously-exported JSON trace:

screen shot 2015-03-12 at 10 07 40 pm

Attempts to upload traces that are duplicates or would collide (i.e. merge with an existing trace) are met with an error alert.

After importing a JSON trace, the page is refreshed and the trace can be viewed normally through the UI.