generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
消费日志中记录使用的上游渠道 #249
Labels
Comments
如果报错了终端的日志是有记录渠道 id 的,正常请求的情况下记录是哪一个渠道的意义不大。 |
那看来还是有这个需求 |
还有一个场景:随着查使用量接口 |
有点意思
…---Original---
From: ***@***.***>
Sent at: 2023年8月1日(Tue) PM5:48
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [songquanpeng/one-api] 消费日志中记录使用的上游渠道 (Issue #249)
还有一个场景:随着查使用量接口v1/dashboard/billing/usage更改为只能使用sessionKey查询,查余额功能几乎算是废了。所以消费日志中关联上游渠道,就可以在OneAPI中统计出上游渠道的本月使用量、总使用量,近似得出余额,这类似于手机本地统计流量消耗。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
+1 关注 |
1 similar comment
+1 关注 |
Closed
+1 希望在错误时候记录下上游渠道id 以便查看 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
例行检查
功能描述
日志关联上游渠道。
可通过id关联,但id可能会重复(比如id最大值的渠道被删除后,重新添加渠道,id会复用)
可通过渠道名关联,但渠道名也可能重复。
哪怕仅仅记录渠道名和id。
应用场景
管理员查看渠道的使用记录,用于查看one-api对哪些渠道发起了哪些请求。
The text was updated successfully, but these errors were encountered: