-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to send backgroundTransaction (on Heroku) #255
Comments
The error occurs because the My default, the Scout integration for Symfony will subscribe to the the There are a few reasons I can think of why this might not be happening:
If the first point does not help you, would you be able to share your Scout configuration please; this should be output earlier in the logs, for example:
Or alternatively, the contents of your
and
|
Hi @asgrim, Thanks a bunch for the detailed answer ! I'm now getting 'true' (and no error anymore) on Could it be an issue because I'm using the heroku integration ? Also, on the dashboard it says 'Background jobs are not yet supported for PHP apps.' but meaning automatically right ? It supposed to work if we manually add it using Best, |
@pesseyjulien would you be able to provide that configuration that should be displayed in the log output please, as that should help us determine if the messages are getting sent to the core agent? I know the data can take a few minutes to reach the dashboard sometimes, and I think the dashboard only displays requests over a certain request length, e.g. slow requests (@jrothrock may be able to confirm that) |
I'm sorry but it seems there is no way to see this kind of log on Heroku :/ But I revert the SCOUT_LOG_LEVEL to DEBUG and got :
|
Is that the only log message you see with |
I finally go them logs ! They appear if the command throws an exception..
What I have gathered from my investigation :
So I think the heroku way of handling commands is the issue ! |
Thanks @pesseyjulien - I'll try and reproduce this as soon as I can. |
I can confirm that I can reproduce the behaviour you're seeing. I created a small isolated repository test case that is deployable to Heroku, with a "long-running process" and a "short process" (i.e. a fire-once type command). I believe your report pertains specifically to the latter (a fire-once job that exits after completed), so I shall focus on that. In both cases, Scout must download and run the
The above transaction never made it into the dashboard.
In this case, I left the session open. After a while I saw the transaction appear in the dashboard. The most likely explanation for this is that the I will discuss this with the Scout team and see what recommendations we have. I know it isn't ideal, but as a temporary workaround, you could add a |
Moved issue to |
Hi, Thanks for your investigation ! I can't wait for a better solution :) I think what could be ideal is being able to make te core-agent send the transaction directly. For example on Let me know when you have sorted this one out. Thanks again, |
Hi,
I have been following the doc (https://scoutapm.com/docs/php/advanced-features#custom-instrumentation) in order to send a backgroundTransaction :
Injecting
private Scoutapm\ScoutApmAgent $scout
in the command__construct
.But I'm getting the following error :
Any idea why ?
Thanks in advance,
Julien
The text was updated successfully, but these errors were encountered: