-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Spans not sent if span is dropped manually or exec is called? #647
Comments
I think the problem here is that you are using I believe you have three choices to go from here:
I believe 2. provides the best tradeoffs here, but the choice is yours :-) |
Unfortunately we need to call exec there. I've tried calling |
Hi, just checking back, how do you manually do option 3? As I mentioned above the method I tried didn't work. |
Finishing the span (and the root transaction) would submit those to the transport. Then you would have to flush the transport. |
Environment
What version are you running? Etc.
tracing
feature enabledSteps to Reproduce
This code is open source, so you can peek through it.
tracing::instrument
macro to instrument different commands in our CLI. Here's an example of a working command (install command).exec
a user's shell.instrument
macro I would create a span manually so that I could drop it at the appropriate time.instrument
macro in case there's some cleanup that I'm not performing (I also removed the manualdrop
s), but there are still no spans sent for this command. I'm thinking that somehow a transaction isn't gettingfinish
ed?tracing
logs in my terminal, so theactivate
span is getting created, but it's not getting reported.Expected Result
I would expect spans to be reported for this command like all the others.
Actual Result
Sentry is initialized:
For commands that do work you later see logs like this:
For this
activate
command the second set of logs is missing.The text was updated successfully, but these errors were encountered: