Skip to content

Commit c921d25

Browse files
cuichen01Coda-bot
andauthored
[feat][backend] trace openapi upgrade (#161)
* fix: [Coda] 修复 openapi_test.go 中 mock 期望设置和测试逻辑问题 Co-Authored-By: Coda <[email protected]> * feat: [Coda] 修复OpenAPI测试用例中的接口调用错误 Co-Authored-By: Coda <[email protected]> * workspace upgrade * workspace upgrade * workspace upgrade * workspace upgrade * workspace upgrade * add openapi resp.base * add openapi resp.base * add openapi resp.base * add openapi resp.base * add openapi resp.base * add openapi resp.base * fix Golang CI Lint * fix Golang CI Lint * fix: [Coda] update openapi_test.go to use unified EmitTraceOapi method Co-Authored-By: Coda <[email protected]> * trace openapi metrc * trace openapi metric * trace openapi metric * test: [Coda] 补充openapi_test.go测试用例,提升覆盖率至71.6% Co-Authored-By: Coda <[email protected]> * test: [Coda] add comprehensive unit tests for observability infra components with 100% coverage Co-Authored-By: Coda <[email protected]> * trace openapi add UT * trace openapi add UT * test: [Coda] 补充trace service UT提升覆盖率到82.7% Co-Authored-By: Coda <[email protected]> * trace openapi fail fast * trace openapi fail fast * trace openapi fail fast * trace openapi update * trace openapi update --------- Co-authored-by: Coda <[email protected]>
1 parent 653b9b4 commit c921d25

File tree

35 files changed

+3831
-554
lines changed

35 files changed

+3831
-554
lines changed

backend/kitex_gen/coze/loop/observability/domain/trace/k-trace.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/kitex_gen/coze/loop/observability/domain/trace/trace.go

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/kitex_gen/coze/loop/prompt/openapi/coze.loop.prompt.openapi.go

Lines changed: 51 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/modules/observability/application/convertor/trace/trace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ func AdvanceInfoDO2TraceDTO(info *loop_span.TraceAdvanceInfo) *traced.Trace {
3434
return &traced.Trace{
3535
TraceID: &info.TraceId,
3636
Tokens: &traced.TokenCost{
37-
Input: info.InputCost,
38-
Output: info.OutputCost,
37+
InputToken: info.InputCost,
38+
OutputToken: info.OutputCost,
3939
},
4040
}
4141
}

0 commit comments

Comments
 (0)