Skip to content

fix: report specific outcome tags for known AWS Glue exceptions - #146

Merged
jamespfaulkner merged 1 commit into
mainfrom
fix/glue-listener-entity-not-found-outcome
Jul 28, 2026
Merged

fix: report specific outcome tags for known AWS Glue exceptions#146
jamespfaulkner merged 1 commit into
mainfrom
fix/glue-listener-entity-not-found-outcome

Conversation

@jamespfaulkner

Copy link
Copy Markdown
Contributor

Summary

  • GlueSync listener metrics were reporting outcome:amazonserviceexception for several distinct AWS Glue failures (e.g. EntityNotFoundException on alter_table), obscuring the real cause.
  • KNOWN_EXCEPTION_NAMES in ApiaryGlueSync now includes EntityNotFoundException, AlreadyExistsException, ConcurrentModificationException, ResourceNumberLimitExceededException, and GlueEncryptionException, so each surfaces its own outcome tag instead of falling back to the generic AmazonServiceException superclass match.
  • Added toOutcome_entityNotFoundException_returnsSpecificOutcome to cover the new mapping.

Test plan

  • ApiaryGlueSyncTest passes, including the new test and the existing hierarchy-fallback/other tests (unaffected — they use a custom UnknownGlueException and a plain RuntimeException)
  • Confirm in Datadog after deploy that outcome:entitynotfoundexception (and similar) now appear instead of the generic bucket

🤖 Generated with Claude Code

EntityNotFoundException, AlreadyExistsException, ConcurrentModificationException,
ResourceNumberLimitExceededException, and GlueEncryptionException were falling
through to the generic AmazonServiceException outcome tag in GlueSync listener
metrics, obscuring the real failure type (e.g. EntityNotFoundException on
alter_table for missing tables).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jamespfaulkner
jamespfaulkner requested a review from a team as a code owner July 28, 2026 11:42
@jamespfaulkner
jamespfaulkner merged commit 890dc02 into main Jul 28, 2026
1 check passed
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.

2 participants