-
Notifications
You must be signed in to change notification settings - Fork 805
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 metric for async request payload size #5965
Conversation
@@ -1771,6 +1771,7 @@ func (wh *WorkflowHandler) StartWorkflowExecutionAsync( | |||
if err != nil { | |||
return nil, fmt.Errorf("failed to encode StartWorkflowExecutionAsyncRequest: %v", err) | |||
} | |||
scope.RecordTimer(metrics.AsyncRequestPayloadSize, time.Duration(len(payload))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have the method-name dimension on this scope? e.g. startworkflowexecution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
@@ -2178,6 +2178,8 @@ const ( | |||
|
|||
HashringViewIdentifier | |||
|
|||
AsyncRequestPayloadSize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: move to the correct order although the ordering is already broken
ArchivalConfigFailures
ActiveClusterGauge
AsyncRequestPayloadSize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not following an alphabetical order. The order is by functionality.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Pull Request Test Coverage Report for Build 018f3a66-fee4-4c5b-b726-da63d4cfff38Details
💛 - Coveralls |
What changed?
Add metric for async request payload size
Why?
improve observability
How did you test it?
Potential risks
Release notes
Documentation Changes