Skip to content

feat: attach project name to trace metadata - #60

Open
johnbuccola wants to merge 1 commit into
langfuse:mainfrom
johnbuccola:jb/add-project-trace-metadata
Open

feat: attach project name to trace metadata#60
johnbuccola wants to merge 1 commit into
langfuse:mainfrom
johnbuccola:jb/add-project-trace-metadata

Conversation

@johnbuccola

Copy link
Copy Markdown

Adds a short project field derived from the existing cwd metadata. This lets Langfuse traces be grouped by checkout while retaining the full cwd and Git branch context. Verification: 183 tests pass.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


John Buccola seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@atoomic

atoomic commented Aug 18, 2026

Copy link
Copy Markdown

@johnbuccola — this is solving the same need I have (group traces by what the run was for),
and I've just opened #61 approaching it from the tags side, so one concrete datum in case it's useful here.

On a self-hosted Langfuse v3.212.0, GET /api/public/traces filters first-class on
tags, userId, sessionId, name, environment, release and version — but not on
metadata. Verified directly against the API: ?tags=project:foo returns the matching
traces, while there's no equivalent ?metadata= parameter.

So the two look complementary rather than overlapping: metadata is right for context you read
once you've opened a trace (and project derived from cwd is genuinely nicer to read than a
full path), while tags are what you can actually slice a cost or latency report by. Worth
having both — I don't think this PR and mine are in tension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants