-
Notifications
You must be signed in to change notification settings - Fork 399
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
feat: support to process tag #1806
Conversation
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.
- 整体实现需要重新看一下文档
- 这个插件应该是pipeline级别的了
- C++和Go串联的情况下,应该全部由C++这边来完成处理,Go应该啥都不做,只有Aggregator的Topic是个例外
062c0d2
to
05d5f38
Compare
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.
现有C++和go的tag行为不一致,需要保持一致,而不是继续遵从现状,详见设计文档。
pluginmanager/processor_tag.go
Outdated
) | ||
|
||
const ( | ||
hostNameDefaultTagKey = "host_name" |
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.
这里只有开源的,商业版在另一个文件,单独提交到内部
core/file_server/ContainerInfo.cpp
Outdated
std::string key = tags[i - 1].asString(); | ||
std::string value = tags[i].asString(); | ||
// 老版本或者容器元信息 | ||
if (isOldCheckpoint && containerNameTag.find(key) != containerNameTag.end()) { | ||
containerInfo.AddMetadata(key, value); | ||
} else { | ||
containerInfo.mTags.emplace_back(tag); | ||
containerInfo.mTags.emplace_back(key, value); |
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.
这段逻辑和qiuwencheng确认下,感觉有点怪
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.
之前代码判断写错了
支持重命名和修改Tag
配置
内部数据结构定义调整