diff --git a/receiver/podmanreceiver/receiver.go b/receiver/podmanreceiver/receiver.go index 4e2b1e3d546b..e77a1943ff22 100644 --- a/receiver/podmanreceiver/receiver.go +++ b/receiver/podmanreceiver/receiver.go @@ -63,7 +63,8 @@ func (r *metricsReceiver) start(ctx context.Context, _ component.Host) error { return err } - cctx, cancel := context.WithCancel(ctx) + // context for long-running operation + cctx, cancel := context.WithCancel(context.Background()) r.cancel = cancel go r.scraper.containerEventLoop(cctx)