apache / apache/incubator-seata
Seata Metrics 无法统计各个事务模式单独数据 还有 global_table 表 也没有这个属性
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
## Why you need it?
Is your feature request related to a problem? Please describe in details
在 Metric 功能,如 TC 中的一个指标 seata.transaction(role=tc,meter=timer,statistic=total,status=committed/rollback),没有区分 哪一种模式(TCC、SAGA),所以目前无法统计 不同事务模式的 各种指标,还有在global_table没有type字段区分不同事务模式,也建议加上这样一个属性
## How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.
Before:
seata.transaction(role=tc,meter=timer,statistic=total,status=committed/rollback)
After:
seata.transaction(role=tc,meter=timer,statistic=total,status=committed/rollback,type='saga')
## Other related information
Add any other context or screenshots about the feature request here.
Contributor guide
Research direction
Start by tracing how the TC metric `seata.transaction` records committed and rollback totals, then inspect the `global_table` schema and its handling of TCC and SAGA transactions. Add a transaction-mode distinction to both representations, while checking existing metric and schema tests if available. Done means metrics and global transaction records can distinguish the transaction mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases, distributed-systems, observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100