Add live dashboard telemetry bar

This commit is contained in:
mmckeen-nv
2026-04-30 12:41:30 -07:00
parent 6d25b2395e
commit 65309285fa
6 changed files with 500 additions and 20 deletions
+3
View File
@@ -1,4 +1,5 @@
import { callBrokerServerTool, listBrokerServerTools } from "./mcpBrokerClient"
import { recordLiveTelemetryEvent } from "./liveTelemetry"
import { listAllowedBrokerServers, type SandboxMcpBrokerSession } from "./mcpBrokerStore"
import type { McpServerInstall } from "./mcpServerStore"
@@ -114,6 +115,8 @@ async function handleBrokerMcpJsonRpcMessage(session: SandboxMcpBrokerSession, m
const id = hasJsonRpcId(request) ? request.id ?? null : null
const method = typeof request.method === "string" ? request.method : ""
const isNotification = !hasJsonRpcId(request)
recordLiveTelemetryEvent("transaction", { sandboxId: session.sandboxId })
recordLiveTelemetryEvent("mcp_request", { sandboxId: session.sandboxId })
try {
switch (method) {