-
Notifications
You must be signed in to change notification settings - Fork 8.9k
optimize: metrics add retry status #7478
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
Conversation
# Conflicts: # metrics/seata-metrics-api/src/main/java/org/apache/seata/metrics/IdConstants.java # server/src/main/java/org/apache/seata/server/metrics/MeterIdConstants.java
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #7478 +/- ##
============================================
+ Coverage 60.30% 60.33% +0.03%
Complexity 658 658
============================================
Files 1281 1281
Lines 48281 48308 +27
Branches 5676 5676
============================================
+ Hits 29114 29146 +32
+ Misses 16557 16554 -3
+ Partials 2610 2608 -2
🚀 New features to boost your workflow:
|
|
|
||
| String APP_ID_KEY = "applicationId"; | ||
|
|
||
| String TRANSACTION_ID_KEY = "transactionId"; |
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.
ID is a non-enumerable variable and cannot be used as a Prometheus monitoring metric. Otherwise, it will cause Prometheus cache data to inflate infinitely, leading to full GC and ultimately application OOM.
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.
明白,我改一下。
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.
已处理,辛苦抽空再帮忙看看
funky-eyes
left a comment
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.
LGTM
|
If you're using the DingTalk app, please send your DingTalk account to my email at |
|
Run 'mvn spotless:apply' to fix these violations. |
done |
Ⅰ. Describe what this PR did
1.Server metrics add global retry statuses, including GlobalStatus.CommitRetrying, GlobalStatus.RollbackRetrying, and GlobalStatus.TimeoutRollbackRetrying.
2.The collected data for the above statuses now includes information on transactionId and transactionName.
Ⅱ. Does this pull request fix one issue?
fixes #7447
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews