-
Notifications
You must be signed in to change notification settings - Fork 184
Fix console tracing #930
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
Fix console tracing #930
Conversation
I noticed that our project lacks spans when executing console commands. I found that upon completion of a console command, only one specific span is finalized, rather than the entire transaction, unlike the behavior in TracingRequestListener. After locally modifying it to complete the transaction and running console sentry:test, I observed the other spans that were previously missing. Therefore, I believe this fix should resolve the issue.
|
The tests failed because they check for the invocation of the getSpan method. I would like to understand whether there is a bug here and the tests need to be fixed, or if the issue lies elsewhere. |
|
@cleptric Hi, can you check my MR? |
|
Hi @Big-Shark! Can you provide more information what you received before your change and after your change. It seems to make no difference for me when running |
|
My sentry yaml config |
|
Thank you for your reply and sorry for coming back so late to you. I added your custom span to the SentryTestCommand and I got your expected results without your change (minus the Could you provide a minimal working example where you reproduce the behaviour? I'm generally a bit reluctant to finish transaction on console termination as this would also finish the transaction once a subcommand terminates. |
|
I couldn't reproduce this issue locally on a new project, though last time I did experiment on a clean project. |



I noticed that our project lacks spans when executing console commands. I found that upon completion of a console command, only one specific span is finalized, rather than the entire transaction, unlike the behavior in TracingRequestListener. After locally modifying it to complete the transaction and running console sentry:test, I observed the other spans that were previously missing. Therefore, I believe this fix should resolve the issue.