Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failure origins to APM trace #19665

Merged
merged 2 commits into from
Nov 28, 2022
Merged

Conversation

jdpgrailsdev
Copy link
Contributor

What

  • Increase visibility into connections that fail for platform reasons

How

  • Add failure reasons to APM traces
  • Handle potential null conditions

Recommended reading order

  1. FailureReason.yaml
  2. FailureHelper.java
  3. JobCreationAndStatusUpdateActivityImpl.java

Tests

  • Added tests to verify potential null conditions
  • All existing tests pass
  • Project builds locally

N.B. This is a second attempt to apply #19550 after @benmoriceau discovered it caused a NPE when manually terminating a workflow via the Temporal UI. This lead us to discover that we don't set a failure origin when an unexpected exception is handled by the parent workflow. This new PR has all of the changes from the previous one, plus the additional null handling to ensure we don'f fail the activity when attempting to record metrics. This PR can wait to be merged until after the code freeze.

@octavia-squidington-iv octavia-squidington-iv added area/platform issues related to the platform area/worker Related to worker labels Nov 21, 2022
@jdpgrailsdev jdpgrailsdev temporarily deployed to more-secrets November 21, 2022 18:28 Inactive
@jdpgrailsdev jdpgrailsdev temporarily deployed to more-secrets November 21, 2022 18:28 Inactive
@jdpgrailsdev jdpgrailsdev merged commit 2423c7d into master Nov 28, 2022
@jdpgrailsdev jdpgrailsdev deleted the jonathan/trace-failure-origins branch November 28, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/worker Related to worker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants