scout-apm-php icon indicating copy to clipboard operation
scout-apm-php copied to clipboard

The job named queue:work did not successfully ignore.

Open imammahudi16 opened this issue 11 months ago • 1 comments

Hi, I have a case regarding ignoring transactions for jobs. The job name is queue:work, and as shown in the image below, it still appears in the monitoring.

Image

I have now set the job to ignore as follows: ScoutApm::ignore(); in each job using middleware.

I have also set it in app/Console/kernel.php like this:

protected array $middleware = [ ScoutJobSamplingMiddleware::class, ScoutCommandSamplingMiddleware::class, ];

Both of these middlewares contain the ignore jobs. Do you have any suggestions regarding my issue above?

imammahudi16 avatar Jan 30 '25 03:01 imammahudi16

Responded in Discord, but thanks for the issue. We will take a deeper look when we get the agent logs.

lancetarn avatar Jan 31 '25 16:01 lancetarn