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 failure_reason label for nexus_task_execution_failed metric on task timeout #1684

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

bergundy
Copy link
Member

We mistakenly reported timeouts as internal_sdk_error. I'll update the docs site as well.

@bergundy bergundy requested a review from a team as a code owner October 23, 2024 19:46
require.Equal(t, nexus.StatusDownstreamTimeout, unexpectedResponseErr.Response.StatusCode)

require.EventuallyWithT(t, func(t *assert.CollectT) {
tc.requireFailureCounter(t, service.Name, syncOp.Name(), "timeout")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why only assert the failure counter? shouldn't NexusTaskScheduleToStartLatency be published?

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 figured it's covered in the other tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

hm I think this case is different because we don't report E2E latency on timeout

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 know, I meant the other two metrics. In any case, I've added the tests.

@bergundy bergundy merged commit 5505d04 into temporalio:master Oct 24, 2024
13 checks passed
@bergundy bergundy deleted the nexus-label-fix branch October 24, 2024 20:50
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