Skip to content

[17] Sentry Upgrade: v7 → v10 #7017

Draft
n-lark wants to merge 2 commits intomainfrom
17-sentry-upgrade
Draft

[17] Sentry Upgrade: v7 → v10 #7017
n-lark wants to merge 2 commits intomainfrom
17-sentry-upgrade

Conversation

@n-lark
Copy link
Copy Markdown
Contributor

@n-lark n-lark commented Apr 6, 2026

Description

See details & test plan.

Blocker

⚠️ The following blocker is preventing full verification. Frontend integration has been confirmed via payload inspection but cannot be verified in the Sentry UI until this is resolved.

# Blocker Impact
1 Sentry quota exhausted — spans, transactions, and replays are being dropped by Sentry with "quota or internal rate limit reached". Quota resets at the start of the next billing period. Cannot verify steps 7, 8, or any backend tracing in the Sentry UI

Related Issue(s)

Resolves https://github.com/FlowFuse/engineering/issues/17

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

@n-lark n-lark self-assigned this Apr 6, 2026
})
}

const server = fastify({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sentry.init() is moved to before fastify() because Sentry v10 uses OpenTelemetry to instrument Node.js modules at startup. Calling it after fastify() meant those patches were never applied and errors weren't captured.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.28%. Comparing base (d2df691) to head (a9df9ba).

Files with missing lines Patch % Lines
forge/forge.js 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7017      +/-   ##
==========================================
+ Coverage   76.26%   76.28%   +0.02%     
==========================================
  Files         403      403              
  Lines       20312    20312              
  Branches     4886     4885       -1     
==========================================
+ Hits        15490    15495       +5     
+ Misses       4822     4817       -5     
Flag Coverage Δ
backend 76.28% <66.66%> (+0.02%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant