langfuse-js icon indicating copy to clipboard operation
langfuse-js copied to clipboard

feat: use projectid when generating trace urls

Open maxdeichmann opened this issue 1 year ago • 1 comments

[!IMPORTANT] Enhance getTraceUrl() to include projectId and add project fetching functionality with tests.

  • Behavior:
    • getTraceUrl() in LangfuseObjectClient now includes projectId in the URL. If projectId is not set, it fetches from /api/public/projects.
    • Removes DeferRuntime type from types.ts.
  • Functions:
    • Adds fetchProjects() in LangfuseCoreStateless to retrieve project data.
  • Tests:
    • Adds test in langfuse.traces.spec.ts to verify getTraceUrl() returns correct URL with projectId.

This description was created by Ellipsis for b28ad60e0d44643f0cf9944888620c2294f5caff. It will automatically update as commits are pushed.

maxdeichmann avatar Dec 05 '24 14:12 maxdeichmann

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langfuse-js ✅ Ready (Inspect) Visit Preview Dec 5, 2024 3:23pm

vercel[bot] avatar Dec 05 '24 14:12 vercel[bot]

already handled in new JS SDK v4

hassiebp avatar Aug 12 '25 15:08 hassiebp