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 metrics for tasks already started in matching #6239

Merged

Conversation

fimanishi
Copy link
Contributor

What changed?
Added metrics to PollForDecisionTask and PollForActivityTask to track when the task being polled has already started and therefore discarded.

Why?
This metric will give visibility to the accumulation of stale tasks in matching and will serve as a baseline for future work on that part.

How did you test it?

Potential risks

Release notes

Documentation Changes

What changed?
Added metrics to PollForDecisionTask and PollForActivityTask to track when the task being polled has already started and therefore discarded.

Why?
This metric will give visibility to the accumulation of stale tasks in matching and will serve as a baseline for future work on that part.

How did you test it?

Potential risks

Release notes

Documentation Changes
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.94%. Comparing base (67fcf12) to head (326f96b).
Report is 4 commits behind head on master.

Additional details and impacted files
Files Coverage Δ
service/matching/handler/engine.go 80.20% <100.00%> (+0.25%) ⬆️

... and 11 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 67fcf12...326f96b. Read the comment docs.

@@ -3227,6 +3229,8 @@ var MetricDefs = map[ServiceIdx]map[int]metricDefinition{
PollLocalMatchLatencyPerTaskList: {metricName: "poll_local_match_latency_per_tl", metricRollupName: "poll_local_match_latency", metricType: Timer},
PollForwardMatchLatencyPerTaskList: {metricName: "poll_forward_match_latency_per_tl", metricRollupName: "poll_forward_match_latency", metricType: Timer},
PollLocalMatchAfterForwardFailedLatencyPerTaskList: {metricName: "poll_local_match_after_forward_failed_latency_per_tl", metricRollupName: "poll_local_match_after_forward_failed_latency", metricType: Timer},
PollDecisionTaskAlreadyStartedCounter: {metricName: "poll_decision_task_already_started", metricType: Counter},
Copy link
Contributor

@davidporter-id-au davidporter-id-au Aug 20, 2024

Choose a reason for hiding this comment

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

do you mind changing this to be:

{ metricName: "poll_decision_task_already_started_per_tl", metricType: Counter},

@fimanishi fimanishi merged commit 6b4a3d6 into uber:master Aug 20, 2024
19 checks 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