Skip to content

fix(sync): log ResourceConnectionError at ERROR with missing-connections detail#565

Merged
michael-richey merged 1 commit into
mainfrom
mrichey/log-resource-connection-error
May 19, 2026
Merged

fix(sync): log ResourceConnectionError at ERROR with missing-connections detail#565
michael-richey merged 1 commit into
mainfrom
mrichey/log-resource-connection-error

Conversation

@michael-richey

@michael-richey michael-richey commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adding a log line for missing resource connections

Test plan

  • New unit tests at tests/unit/test_apply_resource_connection_error.py verify:
    • logger.error is called once with "missing connections: ..." prefix and resource_type/_id kwargs.
    • Skipped counter is still incremented and outcome event is still emitted as skipped.
  • Full unit test suite (pytest tests/unit/) passes — 578 tests, 0 failures.

🤖 Generated with Claude Code

…ons detail

The except ResourceConnectionError block in _apply_resource_cb was silent at
ERROR level — the failure was only logged once at INFO inside
connect_resources. Downstream consumers that harvest only ERROR-level CLI
output (e.g. dd-source/managed-sync) lost visibility into which dependency
was missing, so dashboards/monitors that skip due to absent SLOs, monitors,
roles, etc. presented as silent failures.

Add a logger.error call mirroring the generic Exception handler so the
failed_connections_dict payload surfaces as
"[<type> - <id>] - missing connections: {...}" in standard output.
Counter, outcome event, and metric tags are unchanged.
@michael-richey
michael-richey marked this pull request as ready for review May 18, 2026 15:54
@michael-richey
michael-richey requested a review from a team as a code owner May 18, 2026 15:54
@michael-richey
michael-richey merged commit 65bd57a into main May 19, 2026
21 of 24 checks passed
@michael-richey
michael-richey deleted the mrichey/log-resource-connection-error branch May 19, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants