Skip to content

Commit

Permalink
Changed the endpoint source type from LOCAL to REMOTE in the Init met…
Browse files Browse the repository at this point in the history
…hod of FlusherSLS (#1873)
  • Loading branch information
quzard authored Nov 13, 2024
1 parent 0fb74e6 commit 0c301d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/application/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void Application::Init() {
// Initialize basic information: IP, hostname, etc.
LogFileProfiler::GetInstance();
#ifdef __ENTERPRISE__
EnterpriseConfigProvider::GetInstance()->Init("enterprise");
EnterpriseConfigProvider::GetInstance()->LoadRegionConfig();
if (GlobalConf::Instance()->mStartWorkerStatus == "Crash") {
LogtailAlarm::GetInstance()->SendAlarm(LOGTAIL_CRASH_ALARM, "Logtail Restart");
Expand Down Expand Up @@ -222,7 +223,7 @@ void Application::Start() { // GCOVR_EXCL_START
}

#ifdef __ENTERPRISE__
EnterpriseConfigProvider::GetInstance()->Init("enterprise");
EnterpriseConfigProvider::GetInstance()->Start();
LegacyConfigProvider::GetInstance()->Init("legacy");
#else
InitRemoteConfigProviders();
Expand Down
2 changes: 1 addition & 1 deletion core/plugin/flusher/sls/FlusherSLS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ bool FlusherSLS::Init(const Json::Value& config, Json::Value& optionalGoPipeline
SLSClientManager::GetInstance()->AddEndpointEntry(mRegion,
StandardizeEndpoint(mEndpoint, mEndpoint),
false,
SLSClientManager::EndpointSourceType::LOCAL);
SLSClientManager::EndpointSourceType::REMOTE);
}
}
#ifdef __ENTERPRISE__
Expand Down

0 comments on commit 0c301d2

Please sign in to comment.