-
Notifications
You must be signed in to change notification settings - Fork 168
Closed as not planned
Labels
enhancementNew feature or requestNew feature or request
Description
A new larger feature has been merged into the main langfuse repository: a comprehensive public metrics API endpoint.
Feature Summary:
- Introduced a new
GET /api/public/metricsendpoint to fetch metrics with flexible query parameters. - Query parameters include:
view,dimensions,metrics,filters,timeDimension,fromTimestamp,toTimestamp, andorderBy. - Added schema validation for queries and structured response types.
- Comprehensive tests for valid/invalid queries, authentication, and error handling.
- Documentation updated in
openapi.ymland Postman collection.
Files changed:
- API definition:
fern/apis/server/definition/metrics.yml - OpenAPI spec:
web/public/generated/api/openapi.yml - Postman collection:
web/public/generated/postman/collection.json - Endpoint implementation:
web/src/pages/api/public/metrics/index.ts - Query/response types:
web/src/features/public-api/types/metrics.ts - Tests:
web/src/__tests__/async/metrics-api.servertest.ts
Impact:
- Enables users to programmatically fetch metrics with custom queries.
- Ensures robust validation and error handling for API consumers.
- Improves documentation and testing coverage for public API endpoints.
Please refer to the changelog post guidelines for formatting and publishing this changelog entry.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request