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 service_latency_nouserlatency #3677

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

yiminc
Copy link
Member

@yiminc yiminc commented Nov 30, 2022

What changed?
Fix service_latency_nouserlatency

Why?
service_latency_nouserlatency should subtract user latency.

How did you test it?

Potential risks

Is hotfix candidate?

@yiminc yiminc requested a review from a team as a code owner November 30, 2022 20:01
@yiminc yiminc merged commit 681ce45 into temporalio:master Nov 30, 2022
}()

resp, err := handler(ctx, req)

if val, ok := metrics.ContextCounterGet(ctx, metrics.HistoryWorkflowExecutionCacheLatency.GetMetricName()); ok {
userLatencyDuration := time.Duration(val)
userLatencyDuration = time.Duration(val)
startTime.Add(userLatencyDuration)
Copy link
Member

@yycptt yycptt Nov 30, 2022

Choose a reason for hiding this comment

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

this line can be removed.

yux0 pushed a commit that referenced this pull request Nov 30, 2022
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.

3 participants