Skip to content

Claude code tracing guide#2633

Draft
jannikmaierhoefer wants to merge 1 commit intomainfrom
cursor/claude-code-tracing-guide-929f
Draft

Claude code tracing guide#2633
jannikmaierhoefer wants to merge 1 commit intomainfrom
cursor/claude-code-tracing-guide-929f

Conversation

@jannikmaierhoefer
Copy link
Contributor

Update Claude Code integration guide to reflect new hook architecture and link code/commits to Langfuse traces.

The previous guide only covered a single Stop hook. This update documents the full hook stack (session init, stop, post-Bash commit, prepare-commit-msg) and explains how LANGFUSE_PROJECT_ID and commit trailers are used to establish a deterministic link between Claude-generated code, git commits, and Langfuse traces/sessions. This linkage provides insights into agent performance, cost, and development process.


Open in Web Open in Cursor 

Co-authored-by: Jannik Maierhöfer <jannikmaierhoefer@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Mar 10, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
langfuse-docs Ready Ready Preview, Comment Mar 10, 2026 8:14am

Request Review

@github-actions
Copy link

📦 Next.js Bundle Analysis for langfuse-docs

This analysis was generated by the Next.js Bundle Analysis action. 🤖

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/integrations/other/claude-code 67.07 KB 478.14 KB 136.61% (🟢 -1.20%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

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.

2 participants