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

Emit dedicated metrics for context cancelled #1628

Merged
merged 1 commit into from Jun 14, 2021

Conversation

wxing1292
Copy link
Contributor

What changed?

  • Split ServiceErrContextTimeoutCounter metrics into ServiceErrContextTimeoutCounter and ServiceErrContextCancelledCounter
  • ServiceErrContextCancelledCounter metrics indicates request being cancelled
  • ServiceErrContextTimeoutCounter metrics indicates timeout

Why?
Use dedicated metrics for dedicated error.
Matching to matching task forwarding will return *serviceerror.Canceled which will emit ServiceErrContextCancelledCounter metrics
ref: https://github.com/temporalio/temporal/blob/v1.10.2/service/matching/taskQueueManager.go#L129

How did you test it?
N/A

Potential risks
N/A

Is hotfix candidate?
N/A

* Split ServiceErrContextTimeoutCounter metrics into ServiceErrContextTimeoutCounter and ServiceErrContextCancelledCounter
* ServiceErrContextCancelledCounter metrics indicates request being cancelled
* ServiceErrContextTimeoutCounter metrics indicates timeout
@wxing1292 wxing1292 requested review from alexshtin, mastermanu, yiminc and a team June 14, 2021 19:42
@wxing1292 wxing1292 enabled auto-merge (squash) June 14, 2021 19:55
@wxing1292 wxing1292 merged commit 15666ff into temporalio:master Jun 14, 2021
@wxing1292 wxing1292 deleted the forward-sync-match branch June 14, 2021 20:17
wxing1292 added a commit that referenced this pull request Jun 14, 2021
* Split ServiceErrContextTimeoutCounter metrics into ServiceErrContextTimeoutCounter and ServiceErrContextCancelledCounter
* ServiceErrContextCancelledCounter metrics indicates request being cancelled
* ServiceErrContextTimeoutCounter metrics indicates timeout
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.

None yet

4 participants