Skip to content

fix(workflow_engine): Fix action metrics while in dual processing #93464

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

Merged
merged 2 commits into from
Jun 12, 2025

Conversation

saponifi3d
Copy link
Contributor

Description

Moved the metrics_incr to after the action has been triggered, which broke our current dashboards.

This will reintroduce a metric workflow_engine.process_workflows.action_triggered -- with the tag that includes the type of action we would have triggered.

@saponifi3d saponifi3d requested a review from a team as a code owner June 12, 2025 17:56
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 12, 2025
Copy link
Member

@cathteng cathteng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@@ -309,6 +309,14 @@ def process_workflows(event_data: WorkflowEventData) -> set[Workflow]:
"event_data": asdict(event_data),
},
)
else:
# If the feature flag is not enabled, only send a metric
for action in actions:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we log all the action ids that were triggered by an event?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh, sorry this was auto merged. can +1 a PR or add to another. (lemme know which)

@saponifi3d saponifi3d merged commit 6abe235 into master Jun 12, 2025
60 checks passed
@saponifi3d saponifi3d deleted the jcallender/aci/fix-action-metric branch June 12, 2025 21:27
billyvg pushed a commit that referenced this pull request Jun 18, 2025
…3464)

# Description
Moved the `metrics_incr` to after the action has been triggered, which
broke our current dashboards.

This will reintroduce a metric
`workflow_engine.process_workflows.action_triggered` -- with the tag
that includes the type of action we would have triggered.
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
…3464)

# Description
Moved the `metrics_incr` to after the action has been triggered, which
broke our current dashboards.

This will reintroduce a metric
`workflow_engine.process_workflows.action_triggered` -- with the tag
that includes the type of action we would have triggered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants