Optional Sentry-compatible error reporting (GlitchTip) across BigBlueButton components
Is your feature request related to a problem? Please describe.
Most BigBlueButton components now log to journald, which helps. But when something breaks, finding the cause still means grepping raw log lines from a dozen services (bbb-web, akka-apps, akka-fsesl, graphql-middleware, graphql-actions, shared-notes, export-annotations, recording scripts...). They use different formats (JSON, plain text, logback patterns), and some also write separate files (recording logs, JVM rolling files).
In practice, this means:
- the same error can happen thousands of times without anyone noticing, since nothing groups repeated errors or tracks when they started or which version brought them;
- errors from the HTML5 client mostly stay in the user's browser and never reach the server, unless client logging to the server is enabled;
- errors are only caught by operators and hosting providers who built their own capture setup (Logstash/ELK, custom scripts...), and what they find rarely comes back to the project.
Describe the solution you'd like
Add optional, off-by-default error reporting using the Sentry protocol, so it works with self-hosted, open-source GlitchTip as well as Sentry. Each component would use the official Sentry SDK for its language (Java/Scala, Go, Node, Ruby, browser) and follow the same conventions:
- Off unless a DSN is set. One small config block per component, following the existing
/etc/bigbluebutton/override pattern, with the same keys everywhere (DSN, environment, sample rate, minimum level). - Hook into the logging each component already has (logback, logrus, the Node loggers, the Ruby logger...): errors become grouped issues with stack traces, and recent lower-level logs are attached as context.
- Privacy by default:
- secrets are always masked before sending: checksums, passwords (
*PW), tokens, secrets; - personal data is also masked by default (IPs, cookies, request bodies, user names, chat text and similar), but an operator can turn this off, for example on a self-hosted instance where they want more detail.
- secrets are always masked before sending: checksums, passwords (
- Common tags (
component, BBB version asrelease, server hostname) so one GlitchTip/Sentry project can show the whole stack. - Browser errors (HTML5 client, learning dashboard) as a separate opt-in:
- they are only sent if enabled in
settings.yml, independently of the server-side setting; - the browser sends reports to the BBB server itself, on a path that nginx forwards to GlitchTip/Sentry, so it never contacts an outside host, needs no CSP change, and isn't blocked by ad-blockers;
- the build publishes source maps, so stack traces point to the original TypeScript files instead of the minified bundle.
- they are only sent if enabled in
This could land step by step: first the server-side components, then the recording scripts, then the browser. Optional performance tracing (e.g. API call timings) could come later.
Describe alternatives you've considered
- journald plus Logstash/ELK: these centralize and search logs, but they don't group errors, keep stack traces or map minified client code back to source. Every operator also configures them differently. They stay useful, and this would complement them.
- OpenTelemetry only: a good fit for traces and metrics, but weaker today for grouping errors and for browser error reporting. The Sentry SDKs can interoperate with OpenTelemetry, so this doesn't close that door.
- Leaving it to each operator: this is the current situation described above.
Additional context
GlitchTip is open source (MIT) and can be self-hosted, so no data has to leave the operator's infrastructure. Having one built-in, shared setup would also make bug reports to this project more precise: grouped errors with stack traces, BBB version and component, instead of log excerpts.
We already run GlitchTip on our other services. I plan to implement this, starting with the server-side components. Feedback on the config keys and privacy defaults is welcome before the first PR.
Source: bigbluebutton/bigbluebutton