Skip to content
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

日志消费读取的tag不完整 #318

Open
gpchow opened this issue Jan 24, 2025 · 2 comments
Open

日志消费读取的tag不完整 #318

gpchow opened this issue Jan 24, 2025 · 2 comments

Comments

@gpchow
Copy link

gpchow commented Jan 24, 2025

Version: v0.1.94

Image

Image

自定义的tag X19pcF9f 没有读到

@crimson-gao
Copy link
Collaborator

读取的代码和参数提供下,project logstore 提供下看看

@gpchow
Copy link
Author

gpchow commented Feb 28, 2025

project: sh996sdk-dev
logstore: direct-log

func consumer(shardId int, logGroupList *sls.LogGroupList, checkpointTracker consumerLibrary.CheckPointTracker) (string, error) {
for _, logGroup := range logGroupList.LogGroups {
var logTags = make(map[string]string)
for _, tag := range logGroup.LogTags {
logTags[tag.GetKey()] = tag.GetValue()
}
....
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants