Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dependency tracking for js sdk #1106

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

marcklingen
Copy link
Member

@marcklingen marcklingen commented Dec 16, 2024

Important

Adds dependency tracking for the JavaScript SDK by generating a markdown file and updating documentation and scripts.

  • Behavior:
    • Adds components-mdx/dependents/js.md to track dependents of langfuse/langfuse-js.
    • Updates pages/blog/2024-11-most-used-oss-llmops.mdx and pages/faq/all/packages-depending-on-langfuse.mdx to include JS SDK dependency stats.
  • Scripts:
    • Updates scripts/update_package_usage.sh to generate js.md using github-dependents-info.
  • Misc:
    • Adjusts headings in python.md and js.md to use ### instead of #.

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

Copy link

vercel bot commented Dec 16, 2024

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

Name Status Preview Updated (UTC)
langfuse-docs ✅ Ready (Inspect) Visit Preview Dec 16, 2024 9:04pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Dec 16, 2024
Copy link

📦 Next.js Bundle Analysis for langfuse-docs

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

Two Pages Changed Size

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

Page Size (compressed) First Load % of Budget (350 KB)
/blog/2024-11-most-used-oss-llmops 40.7 KB 374.32 KB 106.95% (🟡 +0.44%)
/faq/all/packages-depending-on-langfuse 36.02 KB 369.64 KB 105.61% (🟡 +0.45%)
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.

@marcklingen marcklingen added this pull request to the merge queue Dec 16, 2024
Merged via the queue into main with commit 31d289b Dec 16, 2024
7 checks passed
@marcklingen marcklingen deleted the add-js-dependencies branch December 16, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant