이 기능은 Helm chart 버전 0.9.5 이상에서 사용할 수 있습니다.
LangSmith는 자체 호스팅 설치에 대한 조직 사용량 차트를 자동으로 생성하고 동기화합니다. 이러한 차트는 Settings > Usage and billing > Usage graph에서 확인할 수 있습니다:
  • Usage by Workspace: workspace별 trace(root run) 수를 집계합니다
  • Organization Usage: 조직의 모든 trace(root run) 수를 집계합니다
차트는 5분마다 새로운 workspace를 포함하도록 새로고침됩니다. 차트는 편집할 수 없습니다.

프로그래밍 방식으로 trace 수 가져오기

두 가지 방법을 사용하여 프로그래밍 방식으로 trace 수를 가져올 수 있습니다:

방법 1: LangSmith REST API 사용

자체 호스팅 설치에서 온라인 키를 사용하는 경우, LangSmith REST API를 사용하여 조직 사용량 데이터를 가져올 수 있습니다.
curl -X GET "https://your-langsmith-instance.com/api/v1/orgs/current/billing/usage" \
  -H "Accept: application/json" \
  -H "X-API-Key: your-api-key" \
  -G \
  -d "starting_on=2025-09-01T00:00:00Z" \
  -d "ending_before=2025-10-01T00:00:00Z" \
  -d "on_current_plan=true"

방법 2: PostgreSQL support query 사용

오프라인 키를 사용하는 설치이거나 더 상세한 내보내기 기능이 필요한 경우, PostgreSQL 데이터베이스에 대해 직접 support query를 실행할 수 있습니다. 사용 가능한 모든 스크립트는 support queries repository에 있습니다.
sh run_support_query_pg.sh "postgres://postgres:postgres@localhost:5432/postgres" \
  --input support_queries/pg_get_trace_counts_daily.sql \
  --output trace_counts.csv
support query 실행에 대한 자세한 내용은 Run support queries against PostgreSQL 가이드를 참조하세요.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I