Skip to content

Wire Bugsnag into the orchestrator#232

Open
morgan-wowk wants to merge 1 commit intobugsnag/api-server-integrationfrom
bugsnag/orchestrator-integration
Open

Wire Bugsnag into the orchestrator#232
morgan-wowk wants to merge 1 commit intobugsnag/api-server-integrationfrom
bugsnag/orchestrator-integration

Conversation

@morgan-wowk
Copy link
Copy Markdown
Collaborator

@morgan-wowk morgan-wowk commented May 8, 2026

TL;DR

Integrates Bugsnag error reporting into the orchestrator to capture system-level exceptions.

What changed?

Bugsnag instrumentation is now initialized at orchestrator startup with the service name tangle-orchestrator. System errors recorded via record_system_error_exception now notify Bugsnag with the associated execution ID. Additionally, any unhandled exception that escapes the main run_loop is reported to Bugsnag before being re-raised.

How to test?

Trigger a system error during an execution and verify that the exception appears in Bugsnag with the correct execution ID attached. Also verify that an unhandled exception in run_loop is reported to Bugsnag under the tangle-orchestrator service.

Why make this change?

Previously, system errors were only tracked via metrics and local logs, making it difficult to investigate failures in production. Routing these exceptions to Bugsnag provides better visibility and alerting for unexpected orchestrator errors.

Copy link
Copy Markdown
Collaborator Author

morgan-wowk commented May 8, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@morgan-wowk morgan-wowk marked this pull request as ready for review May 8, 2026 20:40
@morgan-wowk morgan-wowk requested a review from Ark-kun as a code owner May 8, 2026 20:40
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch from 712e574 to fec81ca Compare May 8, 2026 21:05
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch 2 times, most recently from bba37bb to d1e5bdb Compare May 8, 2026 22:38
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch from fec81ca to 5a7f4b0 Compare May 8, 2026 22:38
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch from d1e5bdb to 368e08e Compare May 8, 2026 23:13
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch from 5a7f4b0 to 0c36e63 Compare May 8, 2026 23:13
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch from 368e08e to ff5439f Compare May 8, 2026 23:18
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch from 0c36e63 to 32b5bbb Compare May 8, 2026 23:18
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch from ff5439f to 765252d Compare May 8, 2026 23:25
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch from 32b5bbb to 7baeb97 Compare May 8, 2026 23:25
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch from 765252d to e7d28aa Compare May 8, 2026 23:27
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch 2 times, most recently from 79954ff to 4c66fed Compare May 8, 2026 23:32
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch 2 times, most recently from 666bc18 to a5bc1e7 Compare May 8, 2026 23:38
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch 2 times, most recently from 53c3b0f to f52741d Compare May 8, 2026 23:40
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch from a5bc1e7 to cd51f98 Compare May 8, 2026 23:40
@morgan-wowk morgan-wowk force-pushed the bugsnag/api-server-integration branch from cd51f98 to d7ace7d Compare May 8, 2026 23:41
@morgan-wowk morgan-wowk force-pushed the bugsnag/orchestrator-integration branch from f52741d to c0ba47b Compare May 8, 2026 23:41
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