Conversation
(LogID: 202509171627200100911101158442AB5) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202509171627200100911101158442AB5) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 2025091717345901009111011567354BF) Co-Authored-By: Coda <coda@bytedance.com>
…tion (LogID: 20250917174630010091110115283AA9A) Co-Authored-By: Coda <coda@bytedance.com>
…nstants (LogID: 2025091811100901009111011538111C3) Co-Authored-By: Coda <coda@bytedance.com>
…TraceRepo (LogID: 202509181158370100911101150622C9A) Co-Authored-By: Coda <coda@bytedance.com>
… calls (LogID: 202509181938080100911101156688B07) Co-Authored-By: Coda <coda@bytedance.com>
…terface (LogID: 20250919125803010091110115303BB0B) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20250919125803010091110115303BB0B) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202509191728280100911101157415799) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 2025092217305901009110607501234E6) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202509261759130100911042537649351) Co-Authored-By: Coda <coda@bytedance.com>
…_count metric (LogID: 202509291209590100911092389298F4D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251015105314010091104094405CFC2) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202510151538390100911040946941251) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202510161048080100911040943155F84) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202510242052381921680001031104016) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251024215714192168000103764C39D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251024215714192168000103764C39D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251024215714192168000103764C39D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251024215714192168000103764C39D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251024215714192168000103764C39D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251024215714192168000103764C39D) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 20251027112907010091111069183BB83) Co-Authored-By: Coda <coda@bytedance.com>
(LogID: 202510271430510100911110693736081) Co-Authored-By: Coda <coda@bytedance.com>
CozeLoop
left a comment
There was a problem hiding this comment.
Overall review: The PR introduces observability metrics and minor API/config changes. Inline comments cover a potential compatibility concern (IDL mapping for span_ids) and a deployment config inconsistency (key_columns). Other changes appear low-risk (docs and span type additions).
| 5: optional string granularity (api.body="granularity") | ||
| 6: optional filter.FilterFields filters (api.body="filters") | ||
| 7: optional common.PlatformType platform_type (api.body="platform_type") | ||
| 8: optional list<filter.FilterField> drill_down_fields (api.body="drill_down_fields") |
There was a problem hiding this comment.
drill_down_fields有什么用?
| } | ||
|
|
||
| struct GetDrillDownValuesResponse { | ||
| 1: optional list<string> values |
There was a problem hiding this comment.
这里要不要给个数据结构,说不定以后显示值和实际库里的值不一致?
| 3: required i64 end_time (api.js_conv='true', go.tag='json:"end_time"', api.body="end_time", vt.gt="0") | ||
| 4: optional filter.FilterFields filters (api.body="filters") | ||
| 5: optional common.PlatformType platform_type (api.body="platform_type") | ||
| 6: required metric.DrillDownValueType drill_down_value_type (api.body="drill_down_value_type") |
There was a problem hiding this comment.
这里如果是枚举值,会不会以后内场或者商业化专用的下钻维度不太好处理?
| errorx.WithExtraMsg(fmt.Sprintf("metric definition %s not found", metricName))) | ||
| } | ||
| if _, ok := mVal.(entity.IMetricCompound); ok { | ||
| return m.queryCompoundMetric(ctx, req, mVal) |
There was a problem hiding this comment.
如果传入多个metricsName,其中有符合指标,直接return就不对了吧?
There was a problem hiding this comment.
ok 预期就是只能传一个复合指标 不然就是前端传的有问题
| "github.com/coze-dev/coze-loop/backend/modules/observability/domain/trace/service/trace/span_filter" | ||
| ) | ||
|
|
||
| type GeneralModelFailRatioMetric struct { |
There was a problem hiding this comment.
model_fail为什么不在model下面,这个是按什么逻辑分的
| MetricTypeSummary MetricType = "summary" // 汇总 | ||
| MetricTypePie MetricType = "pie" // 饼图 | ||
|
|
||
| MetricSourceCK MetricSource = "ck" |
There was a problem hiding this comment.
这里是不是不应该暴露ck,这个只需要表达使用内置存储就好?
There was a problem hiding this comment.
如果存储复用的话 那确实不应该用ck
999ef5f to
e177408
Compare
What type of PR is this?
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes: