Loading...
Loading...
Compare original and translation side by side
http://127.0.0.1:27686POST /v1/tracesPOST /v1/logsGET /api/*GET /openapi.jsonContent-Type: application/jsonhttp://127.0.0.1:27686POST /v1/tracesPOST /v1/logsGET /api/*GET /openapi.jsonContent-Type: application/jsonGET /api/healthmotel startmotel start.motel-data/PATHbunx @kitlangton/motel startGET /api/health.motel-data/daemon.logmotel status # JSON status (running? pid? workdir?)
motel stop # stop the managed daemon for this workdirGET /api/servicesGET /api/healthmotel startmotel start.motel-data/PATHbunx @kitlangton/motel startGET /api/health.motel-data/daemon.logmotel status # 返回JSON格式状态(是否运行?进程ID?工作目录?)
motel stop # 停止当前工作目录下受管理的守护进程GET /api/services#region motel debug#endregion motel debugdebug.hypothesisfetch| Key | Purpose |
|---|---|
| Groups all instrumentation for this debug session |
| Links to a specific hypothesis (e.g. |
| Position in the flow (e.g. |
| Human-readable description of what this point captures |
#region motel debug#endregion motel debugdebug.hypothesisfetch| 键 | 用途 |
|---|---|
| 分组本次调试会话的所有埋点 |
| 关联到特定假设(例如 |
| 流程中的位置(例如 |
| 该埋点捕获内容的可读描述 |
curl "http://127.0.0.1:27686/api/spans/search?service=<service>&attr.debug.hypothesis=<id>"
curl "http://127.0.0.1:27686/api/logs/search?service=<service>&attr.debug.session=<session>"
curl "http://127.0.0.1:27686/api/traces/search?service=<service>&attr.debug.hypothesis=<id>"curl "http://127.0.0.1:27686/api/spans/search?service=<service>&attr.debug.hypothesis=<id>"
curl "http://127.0.0.1:27686/api/logs/search?service=<service>&attr.debug.session=<session>"
curl "http://127.0.0.1:27686/api/traces/search?service=<service>&attr.debug.hypothesis=<id>"git diffgit diff// #region motel debug
// temporary debug instrumentation
// #endregion motel debug# #region motel debugsetTimeoutsleep// #region motel debug
// 临时调试埋点代码
// #endregion motel debug# #region motel debugsetTimeoutsleep| Prefix | Match type | Example |
|---|---|---|
| Exact match | |
| Case-insensitive substring | |
curl http://127.0.0.1:27686/api/health
curl http://127.0.0.1:27686/api/services| 前缀 | 匹配类型 | 示例 |
|---|---|---|
| 精确匹配 | |
| 不区分大小写的子串匹配 | |
curl http://127.0.0.1:27686/api/health
curl http://127.0.0.1:27686/api/services
List and search responses include `meta.nextCursor` when more data is available.
Motel gives you trace-correlated data — you can see which span a debug log belongs to, the parent operation, timing, and the full trace tree. Use `GET /api/traces/<trace-id>/spans` and `GET /api/spans/<span-id>/logs` to navigate the correlation.
For AI/LLM calls, use `/api/ai/calls` for compact searchable summaries (with prompt/response previews and token usage), and `/api/ai/calls/<span-id>` for full payloads.
列表与搜索结果在存在更多数据时会包含`meta.nextCursor`。
Motel提供追踪关联的数据——你可以查看调试日志所属的span、父操作、时序以及完整的追踪树。使用`GET /api/traces/<trace-id>/spans`和`GET /api/spans/<span-id>/logs`来浏览关联关系。
对于AI/LLM调用,使用`/api/ai/calls`获取可搜索的紧凑摘要(带提示词/响应预览与令牌使用量),使用`/api/ai/calls/<span-id>`获取完整payload。references/effect.mdreferences/effect.mdscripts/clear-motel-debug.ts#region motel debug#endregion motel debug#region motel debugscripts/clear-motel-debug.ts#region motel debug#endregion motel debuggrep#region motel debug