Skip to content

feat(frontend): Add better frontend tracing#11244

Open
matmair wants to merge 12 commits intoinventree:masterfrom
matmair:add-better-frontend-tracing
Open

feat(frontend): Add better frontend tracing#11244
matmair wants to merge 12 commits intoinventree:masterfrom
matmair:add-better-frontend-tracing

Conversation

@matmair
Copy link
Contributor

@matmair matmair commented Feb 2, 2026

This PR gives us a generic way to associated API calls with a single event in the frontend. This is helpful to more easily find bottlenecks like serial API calls that do not depend on each other, API calls that are always grouped and access the same data and much more.

Changeset is kept minimal to get some practice with the process around the gathered analytics before we maybe extend OTEL to the frontend - which is much more involved data and security wise.

@matmair matmair added this to the 1.2.0 milestone Feb 2, 2026
@matmair matmair self-assigned this Feb 2, 2026
@matmair matmair added enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface performance labels Feb 2, 2026
@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 2456a1f
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/698734199c960f000844dfa9
😎 Deploy Preview https://deploy-preview-11244--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94 (no change from production)
Accessibility: 81 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@matmair matmair marked this pull request as ready for review February 2, 2026 12:13
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 54.16667% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.88%. Comparing base (232cc08) to head (2456a1f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11244      +/-   ##
==========================================
- Coverage   88.07%   87.88%   -0.19%     
==========================================
  Files        1290     1290              
  Lines       58460    58972     +512     
  Branches     1965     1965              
==========================================
+ Hits        51486    51827     +341     
- Misses       6485     6656     +171     
  Partials      489      489              
Flag Coverage Δ
backend 89.31% <52.17%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 91.50% <ø> (-0.34%) ⬇️
Backend General 93.43% <42.10%> (-0.19%) ⬇️
Frontend 70.83% <100.00%> (+<0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
Copy link
Member

Should we be concerned about the extra (albeit small) overhead associated with the extra API call to end the trace? Have you profiled this in action?

@matmair
Copy link
Contributor Author

matmair commented Feb 7, 2026

I have profiled it on my test setup and the duration for the whole interaction is at about 50-65 ms as it does not really do much intensive action

1 similar comment
@matmair
Copy link
Contributor Author

matmair commented Feb 7, 2026

I have profiled it on my test setup and the duration for the whole interaction is at about 50-65 ms as it does not really do much intensive action

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

Labels

enhancement This is an suggested enhancement or new feature performance User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants