upamune/jigsaw
Jigsaw is an open-source tool that allows you to generate sequence diagrams automatically from Datadog Trace JSON.
Bookmaklet
👇 Just drag and drop this onto your bookmark bar!
Click it when you're on the Datadog Trace details page! Doing this will display the Trace JSON page.
This is the code before minifying for the bookmarklet.
const origin = window.location.origin;
const params = new URLSearchParams(window.location.search);
let traceID = params.get('traceID');
if (traceID === null) {
const path = window.location.pathname;
if (!path.startsWith('/apm/trace/')) return;
traceID = path.replace('/apm/trace/', '');
}
const traceURL = `${origin}/api/ui/trace/${traceID}`;
window.open(traceURL, '_blank').focus();