diff --git a/core/processor/daemon/LogProcess.cpp b/core/processor/daemon/LogProcess.cpp index 8c190fd185..b69ec37d39 100644 --- a/core/processor/daemon/LogProcess.cpp +++ b/core/processor/daemon/LogProcess.cpp @@ -408,6 +408,8 @@ void* LogProcess::ProcessLoop(int32_t threadNo) { } } } + + // 统计信息需要放在最外面,确保Pipeline在各种条件下,都能统计到 LogFileProfiler::GetInstance()->AddProfilingData(pipeline->Name(), pipeline->GetContext().GetRegion(), projectName,