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

Fix metrics for task forwarding #6174

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented Jul 17, 2024

What changed?

  • Do not emit task forwarding metrics for started tasks
  • Emit task isolation metrics for local dispatch activities

Why?

  • Task forwarding metrics for started tasks are already emitted in the forwarded tasklist
  • Task isolation metrics are missing for local dispatch activities

How did you test it?
manual tests

Potential risks

Release notes

Documentation Changes

if task.IsStarted() {
// tasks received from remote are already started. So, simply forward the response
return task.PollForActivityResponse(), nil
}
e.emitForwardedFromStats(hCtx.scope, task.IsForwarded(), req.GetForwardedFrom())
e.emitTaskIsolationMetrics(hCtx.scope, task.Event.PartitionConfig, req.GetIsolationGroup())
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, what's the reason for moving the taskIsolationMetric emitting here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just updated the description of the PR.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.67%. Comparing base (8664922) to head (01e75eb).
Report is 1 commits behind head on master.

Additional details and impacted files
Files Coverage Δ
service/matching/handler/engine.go 77.14% <100.00%> (ø)

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8664922...01e75eb. Read the comment docs.

@Shaddoll Shaddoll merged commit c3228ee into cadence-workflow:master Jul 17, 2024
20 checks passed
@Shaddoll Shaddoll deleted the metrics branch July 17, 2024 18:05
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