Skip to content

Commit bb4a3f4

Browse files
committed
PR feedback
1 parent e2fb325 commit bb4a3f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/collector/otel_collector_plugin.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func (oc *Collector) checkForNewReceivers(ctx context.Context, nginxConfigContex
409409
nginxReceiverFound, reloadCollector := oc.updateExistingNginxPlusReceiver(nginxConfigContext)
410410

411411
if !nginxReceiverFound && nginxConfigContext.PlusAPI.URL != "" {
412-
slog.Debug("Adding new Nginx Plus receiver", "url", nginxConfigContext.PlusAPI.URL)
412+
slog.DebugContext(ctx, "Adding new NGINX Plus receiver", "url", nginxConfigContext.PlusAPI.URL)
413413
oc.config.Collector.Receivers.NginxPlusReceivers = append(
414414
oc.config.Collector.Receivers.NginxPlusReceivers,
415415
config.NginxPlusReceiver{
@@ -446,6 +446,7 @@ func (oc *Collector) addNginxOssReceiver(ctx context.Context, nginxConfigContext
446446
nginxReceiverFound, reloadCollector := oc.updateExistingNginxOSSReceiver(nginxConfigContext)
447447

448448
if !nginxReceiverFound && nginxConfigContext.StubStatus.URL != "" {
449+
slog.DebugContext(ctx, "Adding new NGINX OSS receiver", "url", nginxConfigContext.StubStatus.URL)
449450
oc.config.Collector.Receivers.NginxReceivers = append(
450451
oc.config.Collector.Receivers.NginxReceivers,
451452
config.NginxReceiver{
@@ -482,7 +483,7 @@ func (oc *Collector) updateExistingNginxPlusReceiver(
482483
oc.config.Collector.Receivers.NginxPlusReceivers[index+1:]...,
483484
)
484485
if nginxConfigContext.PlusAPI.URL != "" {
485-
slog.Debug("Updating existing Nginx Plus receiver", "url",
486+
slog.Debug("Updating existing NGINX Plus receiver", "url",
486487
nginxConfigContext.PlusAPI.URL)
487488
nginxPlusReceiver.PlusAPI.URL = nginxConfigContext.PlusAPI.URL
488489
oc.config.Collector.Receivers.NginxPlusReceivers = append(
@@ -515,7 +516,7 @@ func (oc *Collector) updateExistingNginxOSSReceiver(
515516
oc.config.Collector.Receivers.NginxReceivers[index+1:]...,
516517
)
517518
if nginxConfigContext.StubStatus.URL != "" {
518-
slog.Debug("Updating existing Nginx Oss receiver", "url",
519+
slog.Debug("Updating existing NGINX OSS receiver", "url",
519520
nginxConfigContext.StubStatus.URL)
520521
nginxReceiver.StubStatus = config.APIDetails{
521522
URL: nginxConfigContext.StubStatus.URL,

0 commit comments

Comments
 (0)