@@ -154,7 +154,7 @@ func (f *Features) enableMetricsFeature(_ string) []core.Plugin {
154154func (f * Features ) enableMetricsCollectionFeature (_ string ) []core.Plugin {
155155 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureMetrics ) &&
156156 ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureMetricsCollection ) {
157-
157+ log . Debugf ( "features.go: enabling metrics-collection feature" )
158158 conf , err := config .GetConfig (f .conf .ClientID )
159159 if err != nil {
160160 log .Warnf ("Unable to get agent config, %v" , err )
@@ -171,7 +171,7 @@ func (f *Features) enableMetricsCollectionFeature(_ string) []core.Plugin {
171171func (f * Features ) enableMetricsThrottleFeature (_ string ) []core.Plugin {
172172 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureMetrics ) &&
173173 ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureMetricsThrottle ) {
174-
174+ log . Debugf ( "features.go: enabling metrics-throttle feature" )
175175 conf , err := config .GetConfig (f .conf .ClientID )
176176 if err != nil {
177177 log .Warnf ("Unable to get agent config, %v" , err )
@@ -188,7 +188,7 @@ func (f *Features) enableMetricsThrottleFeature(_ string) []core.Plugin {
188188func (f * Features ) enableMetricsSenderFeature (_ string ) []core.Plugin {
189189 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureMetrics ) &&
190190 ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureMetricsSender ) {
191-
191+ log . Debugf ( "features.go: enabling metrics-sender feature" )
192192 conf , err := config .GetConfig (f .conf .ClientID )
193193 if err != nil {
194194 log .Warnf ("Unable to get agent config, %v" , err )
@@ -205,6 +205,7 @@ func (f *Features) enableMetricsSenderFeature(_ string) []core.Plugin {
205205func (f * Features ) enableAgentAPIFeature (_ string ) []core.Plugin {
206206 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureAgentAPI ) {
207207 conf , err := config .GetConfig (f .conf .ClientID )
208+ log .Debugf ("features.go: enabling agent-api feature" )
208209 if err != nil {
209210 log .Warnf ("Unable to get agent config, %v" , err )
210211 }
@@ -219,6 +220,7 @@ func (f *Features) enableAgentAPIFeature(_ string) []core.Plugin {
219220
220221func (f * Features ) enableRegistrationFeature (_ string ) []core.Plugin {
221222 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureRegistration ) {
223+ log .Debugf ("features.go: enabling registration feature" )
222224 conf , err := config .GetConfig (f .conf .ClientID )
223225 if err != nil {
224226 log .Warnf ("Unable to get agent config, %v" , err )
@@ -234,6 +236,7 @@ func (f *Features) enableRegistrationFeature(_ string) []core.Plugin {
234236
235237func (f * Features ) enableDataPlaneStatusFeature (_ string ) []core.Plugin {
236238 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureDataPlaneStatus ) {
239+ log .Debugf ("features.go: enabling dataplane-status feature" )
237240 conf , err := config .GetConfig (f .conf .ClientID )
238241 if err != nil {
239242 log .Warnf ("Unable to get agent config, %v" , err )
@@ -249,6 +252,7 @@ func (f *Features) enableDataPlaneStatusFeature(_ string) []core.Plugin {
249252
250253func (f * Features ) enableProcessWatcherFeature (_ string ) []core.Plugin {
251254 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureProcessWatcher ) {
255+ log .Debugf ("features.go: enabling process-watcher feature" )
252256 conf , err := config .GetConfig (f .conf .ClientID )
253257 if err != nil {
254258 log .Warnf ("Unable to get agent config, %v" , err )
@@ -264,6 +268,7 @@ func (f *Features) enableProcessWatcherFeature(_ string) []core.Plugin {
264268
265269func (f * Features ) enableActivityEventsFeature (_ string ) []core.Plugin {
266270 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureActivityEvents ) {
271+ log .Debugf ("features.go: enabling activity-events feature" )
267272 conf , err := config .GetConfig (f .conf .ClientID )
268273 if err != nil {
269274 log .Warnf ("Unable to get agent config, %v" , err )
@@ -279,6 +284,7 @@ func (f *Features) enableActivityEventsFeature(_ string) []core.Plugin {
279284
280285func (f * Features ) enableFileWatcherFeature (_ string ) []core.Plugin {
281286 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureFileWatcher ) {
287+ log .Debugf ("features.go: enabling file-watcher feature" )
282288 conf , err := config .GetConfig (f .conf .ClientID )
283289 if err != nil {
284290 log .Warnf ("Unable to get agent config, %v" , err )
@@ -297,6 +303,7 @@ func (f *Features) enableNginxCountingFeature(_ string) []core.Plugin {
297303 countingPlugins := []core.Plugin {}
298304 if len (f .conf .Nginx .NginxCountingSocket ) > 0 {
299305 if ! f .pipeline .IsPluginAlreadyRegistered (agent_config .FeatureNginxCounting ) {
306+ log .Debugf ("features.go: enabling nginx-counting feature" )
300307 conf , err := config .GetConfig (f .conf .ClientID )
301308 if err != nil {
302309 log .Warnf ("Unable to get agent config, %v" , err )
0 commit comments