mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-19 05:37:43 +00:00
Feat/jaeger (#243)
* added dummy jaeger json file * added jaeger types file * added dev jaeger endpoint * added jaeger modal with trace visual / information * refactored jaeger logic fixed offsets on short duration spans * refactored into smaller components & added basic scroll bar * removed buttons, added scroll-x, fixed details height and scroll-y * shrunk bar graph to fit view port * slight adjustments * removed ref and now calculate width based on window innerwidth * @media for phone layouts * -fixed details width and padding. -removed scroll.tsx as not needed now -using SpanKind to find parent for now * -reduced truncate size for smaller screens * -root span is now determined from parentSpanId not being found * removed un-needed calls to /getRecentCalls as this was causing a race condition when pcap & jaeger fetching at same time - removed console.log's * wip: add tabs for recent callt tracing * wip: add tabs for recent callt tracing * wip: add tabs for recent callt tracing * fix: review comments * fix: review comments --------- Co-authored-by: ajukes <ajukes@vibecoms.co.uk>
This commit is contained in:
@@ -48,6 +48,7 @@ app.get(
|
||||
remote_host: "3.55.24.34",
|
||||
direction: 0 === i % 2 ? "inbound" : "outbound",
|
||||
trunk: 0 === i % 2 ? "twilio" : "user",
|
||||
trace_id: nanoid(),
|
||||
};
|
||||
data.push(call);
|
||||
}
|
||||
@@ -136,6 +137,17 @@ app.get(
|
||||
}
|
||||
);
|
||||
|
||||
app.get(
|
||||
"/api/Accounts/:account_sid/RecentCalls/trace/:trace_id",
|
||||
(req: Request, res: Response) => {
|
||||
const json = fs.readFileSync(
|
||||
path.resolve(process.cwd(), "server", "sample-jaeger.json"),
|
||||
{ encoding: "utf8" }
|
||||
);
|
||||
res.status(200).json(JSON.parse(json));
|
||||
}
|
||||
);
|
||||
|
||||
/** Alerts mock API responses for local dev */
|
||||
app.get("/api/Accounts/:account_sid/Alerts", (req: Request, res: Response) => {
|
||||
const data: Alert[] = [];
|
||||
|
||||
1159
server/sample-jaeger.json
Normal file
1159
server/sample-jaeger.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user