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 metric for async request payload size #5965

Merged
merged 1 commit into from
May 2, 2024

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented May 2, 2024

What changed?
Add metric for async request payload size

Why?
improve observability

How did you test it?

Potential risks

Release notes

Documentation Changes

@@ -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)))
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

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

Copy link
Member Author

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.

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.96%. Comparing base (959c5bf) to head (7256764).

Additional details and impacted files
Files Coverage Δ
service/frontend/api/handler.go 38.33% <100.00%> (+0.04%) ⬆️

... and 6 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 959c5bf...7256764. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 018f3a66-fee4-4c5b-b726-da63d4cfff38

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 45 unchanged lines in 8 files lost coverage.
  • Overall coverage increased (+0.02%) to 68.125%

Files with Coverage Reduction New Missed Lines %
service/history/execution/mutable_state_task_refresher.go 1 68.99%
service/history/handler/handler.go 2 54.72%
common/membership/hashring.go 2 84.69%
host/taskpoller.go 3 71.94%
service/history/task/transfer_standby_task_executor.go 4 86.21%
service/frontend/api/handler.go 4 62.2%
service/history/engine/engineimpl/historyEngine.go 9 68.85%
service/history/task/task_util.go 20 70.57%
Totals Coverage Status
Change from base Build 018f3a57-cd8c-4c59-a500-20df53f6e8b6: 0.02%
Covered Lines: 100047
Relevant Lines: 146859

💛 - Coveralls

@Shaddoll Shaddoll merged commit 7a7578a into cadence-workflow:master May 2, 2024
20 checks passed
@Shaddoll Shaddoll deleted the async-payload branch May 2, 2024 19:53
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.

4 participants