类:DebugController

java.lang.Object
com.google.adk.web.controller.DebugController

@RestController public class DebugController extends Object
该控制器负责处理与调试及跟踪相关的 API 端点(endpoints)。
  • 构造函数详细信息

  • 方法详细信息(Method Details)

    • getTraceDict

      @GetMapping("/debug/trace/{eventId}") public org.springframework.http.ResponseEntity<?> getTraceDict(@PathVariable String eventId)
      用于根据事件 ID 获取由 ApiServerSpanExporter 存储的跟踪信息的端点。
      Parameters:
      eventId - The ID of the event to trace (expected to be gcp.vertex.agent.event_id).
      Returns:
      A ResponseEntity containing the trace data or NOT_FOUND.
    • getSessionTrace

      @GetMapping("/debug/trace/session/{sessionId}") public org.springframework.http.ResponseEntity<Object> getSessionTrace(@PathVariable String sessionId)
      根据给定的会话 ID(session ID),检索相关的跟踪数据(trace spans)。
      Parameters:
      sessionId - The session ID.
      Returns:
      A ResponseEntity containing a list of span data maps for the session, or an empty list.