Skip to content

Commit 5de4a2b

Browse files
committed
additional logging
Signed-off-by: odubajDT <[email protected]>
1 parent 5923f10 commit 5de4a2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

processor/k8sattributesprocessor/processor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func (kp *kubernetesprocessor) initKubeClient(set component.TelemetrySettings, k
6161

6262
func (kp *kubernetesprocessor) Start(_ context.Context, host component.Host) error {
6363
if metadata.ProcessorK8sattributesDontEmitV0K8sConventionsFeatureGate.IsEnabled() && !metadata.ProcessorK8sattributesEmitV1K8sConventionsFeatureGate.IsEnabled() {
64-
err := errors.New("cannot disable legacy attributes without enabling stable attributes")
64+
err := errors.New("processor.k8sattributes.DontEmitV0K8sConventions cannot be enabled without enabling processor.k8sattributes.EmitV1K8sConventions")
65+
kp.logger.Error("Invalid feature gate combination", zap.Error(err))
6566
componentstatus.ReportStatus(host, componentstatus.NewFatalErrorEvent(err))
6667
return err
6768
}

0 commit comments

Comments
 (0)