Skip to content

fix: Fixed the issue of missing Profile data when the Pipeline contains a Golang plugin. #1521

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

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions core/processor/daemon/LogProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,10 @@ void* LogProcess::ProcessLoop(int32_t threadNo) {
"project", projectName)("logstore", category)("filename", convertedPath));
}
}
}

LogFileProfiler::GetInstance()->AddProfilingData(pipeline->Name(),
// 统计信息需要放在最外面,确保Pipeline在各种条件下,都能统计到
LogFileProfiler::GetInstance()->AddProfilingData(pipeline->Name(),
pipeline->GetContext().GetRegion(),
projectName,
category,
Expand All @@ -424,14 +426,13 @@ void* LogProcess::ProcessLoop(int32_t threadNo) {
profile.historyFailures,
0,
""); // TODO: I don't think errorLine is useful
LOG_DEBUG(
sLogger,
("project", projectName)("logstore", category)("filename", convertedPath)("read_bytes", readBytes)(
"split_lines", profile.splitLines)("parse_failures", profile.parseFailures)(
"parse_time_failures", profile.parseTimeFailures)(
"regex_match_failures", profile.regexMatchFailures)("history_failures",
profile.historyFailures));
}
LOG_DEBUG(
sLogger,
("project", projectName)("logstore", category)("filename", convertedPath)("read_bytes", readBytes)(
"split_lines", profile.splitLines)("parse_failures", profile.parseFailures)(
"parse_time_failures", profile.parseTimeFailures)(
"regex_match_failures", profile.regexMatchFailures)("history_failures",
profile.historyFailures));
logGroupList.clear();
}
}
Expand Down
Loading