diff --git a/collector/internal/collector/collector.go b/collector/internal/collector/collector.go index 6c511ff32d..76da891f13 100644 --- a/collector/internal/collector/collector.go +++ b/collector/internal/collector/collector.go @@ -126,7 +126,7 @@ func (c *Collector) Start(ctx context.Context) error { case otelcol.StateRunning: return nil default: - err = fmt.Errorf("unable to start, otelcol state is %d", state) + err = fmt.Errorf("unable to start, otelcol state is %s", state.String()) } } }