> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-TW/llms.txt # Telemetry API Telemetry API 提供用於取得和分析 Mastra 應用中 Trace 的方法。這有助於監控和偵錯應用的行為與效能。 ## 取得 Trace 取得 Trace,並選擇進行篩選和分頁: ```typescript const telemetry = await mastraClient.getTelemetry({ name: 'trace-name', // Optional: Filter by trace name scope: 'scope-name', // Optional: Filter by scope page: 1, // Optional: Page number for pagination perPage: 10, // Optional: Number of items per page attribute: { // Optional: Filter by custom attributes key: 'value', }, }) ```