-
Notifications
You must be signed in to change notification settings - Fork 397
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
refactor sls client manager #1954
Conversation
henryzhx8
commented
Dec 10, 2024
•
edited
Loading
edited
- 废除了原sdk目录,原目录下的部分函数分别转移到其它地方,原有调用点全部做相应调整:
- Client与创建请求相关的移到SLSClientManager和FlusherSLS中,其余全部移到内部的EnterpriseSLSClientManager
- Common工具函数移到SLSConstant、SLSUtil、common/http/Constant、common/HashUtil、common/EndcodingUtil
- Result工具函数移到SLSReponse
- CurImp废除,功能由common/http/Curl替代
- FlusherSLS的Init和BuildRequest进行了调整,适配新的机制
message LogtailBufferMeta | ||
{ | ||
required string project = 1; | ||
required string endpoint = 2; | ||
required string region = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个改了没有兼容问题?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没有,只是改了pb的名字,pb的string里面是不带这个信息的
@@ -14,9 +14,45 @@ | |||
|
|||
#include "common/http/HttpRequest.h" | |||
|
|||
DEFINE_FLAG_INT32(default_http_request_timeout_secs, "", 15); | |||
DEFINE_FLAG_INT32(default_http_request_timeout_sec, "", 15); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
外部不用的参数?
这个原则可能得明确下。这些参数是否希望用户修改?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是新加参数,后缀名统一都改成sec结尾,不存在兼容问题。目前现行的操作都是通过gflag引入,避免出现之前超时截断把时间写死后期发现不妥无法调整的问题。
cf21533
to
bc0cd0d
Compare