fix(metrics): 补齐媒体结果存储读取与兼容响应指标
增加对象存储 GET、结果 URL 签名和同步 Base64 限流指标,使生产轮询可直接验证零对象下载,并区分签名失败、容量等待超时和 20MiB 超限。\n\n验证:API 全量 go test、go vet、gofmt 与 git diff --check。
This commit is contained in:
@@ -251,6 +251,13 @@ func (s *Service) observeResultStorage(source string) {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Service) observeResultURLSigning(outcome string) {
|
||||
observer, ok := s.billingMetrics.(interface{ ObserveResultURLSigning(string) })
|
||||
if ok {
|
||||
observer.ObserveResultURLSigning(outcome)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Service) Execute(ctx context.Context, task store.GatewayTask, user *auth.User) (Result, error) {
|
||||
return s.execute(ctx, task, user, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user