langfuse-js
langfuse-js copied to clipboard
feat: use projectid when generating trace urls
[!IMPORTANT] Enhance
getTraceUrl()to includeprojectIdand add project fetching functionality with tests.
- Behavior:
getTraceUrl()inLangfuseObjectClientnow includesprojectIdin the URL. IfprojectIdis not set, it fetches from/api/public/projects.- Removes
DeferRuntimetype fromtypes.ts.- Functions:
- Adds
fetchProjects()inLangfuseCoreStatelessto retrieve project data.- Tests:
- Adds test in
langfuse.traces.spec.tsto verifygetTraceUrl()returns correct URL withprojectId.This description was created by
for b28ad60e0d44643f0cf9944888620c2294f5caff. It will automatically update as commits are pushed.
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 |
already handled in new JS SDK v4