-
Notifications
You must be signed in to change notification settings - Fork 204
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
Current transaction is null for ASP.NET Web API #602
Comments
Hello, i have this issue with WCF support on 1.2 release. CurrentTransaction is null when calling in WCF services, due to AsyncLocal i fixed it temporarly using httpcontext.current to store CurrentTransaction and CurrentSpan. Is there a workaround for this issue ? |
It sounds like you have a workaround (using Unfortunately, at the moment (as of agent version 1.2) there is no fix for this issue available out of the box. We accept community PRs if you would like to give it a try. BTW I have (albeit not 100% verified) understanding why |
thx for your reply i have a workaround for WCF but i am not sure it is convenient for .net api calls. i have to make more tests on basic http api calls using async tasks. i guess asynclocal use has been made for a particular reason |
Is your work around a short one that can be shared here as a snippet or is it lengthy? We are bumping up against this too for our WCF services. I'm suspicious this is also causing auto wrapping of outgoing HTTP calls to not be collected in these services as well. Thanks! |
@sluebbert sorry for delay, my workaround is pretty simple. on which branch do you want me to PR ? |
@kodigo35 thanks for following up. I think we would rather live with the issue for now if it involves a patch to this repo vs making a work around outside of it within our code. We are trying to stick with the official releases. |
ok no prb, here's what i did if you want to integrate it later
|
#992 introduced an Closing this as I believe this is now addressed. |
Mentioned for the first time - #83 (comment).
Brought up by another user at discuss.
The text was updated successfully, but these errors were encountered: