원격 측정 API
Telemetry API는 Mastra 애플리케이션에서 추적을 검색하고 분석하는 방법을 제공합니다. 이는 애플리케이션의 동작과 성능을 모니터링하고 디버깅하는 데 도움이 됩니다.
추적 받기추적 받기에 대한 직접 링크
선택적 필터링 및 페이지 매김을 사용하여 추적을 검색합니다.
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',
},
})