-
Notifications
You must be signed in to change notification settings - Fork 64
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
Subsegment not emited after first lambda invocation #240
Comments
I do not believe the current EF Core Interceptor will work on dotnet6.0. I have several branches and plan to implement the fixes required once this library starts releasing more frequently and makes progress on the 3.x breaking changes release. |
@jon-armen could be right about EFCore Interceptor not functional with .Net6 but I suspect if that is the main root cause here since @jeremielec said none of the segments are displayed. @jeremielec Can you provide screenshots of the trace with all the segments and subsegments present, and the one with issues? Also, within your Lambda function, are you generating additional segments or subsegments other than the one for SQL server db? |
@jeremielec , I'm also curious, are your calls to EF sync or async? Reviewing the changes for net6.0, sync may work fine. We would likely see a missing method exception for any async method as the return types changed from Task to ValueTask |
@jon-armen All EfCore call are done in async patern. How over there is no missing method exception at all, everything is just working fine. @srprash No additional segment / subsegment are created. Xray trace valid : XRay with missing data : Api call has been done within 10 second interval with postman. From lambda log stream, there is clear outgoing sql server request executed. |
Hey @jeremielec Can you check the raw data for the trace and verify if the |
@srprash Hello No SQL data are visible at all on Raw Data tab. These one are visible on the (good ?) trace with full sql information. Since no information to view, i cannot provided a snippet :/ How over regarding the display problem mentionned, there is a bug in XRay console after changing the XRay trace id, External node service are updated after a couple of second without any notification. Image of the problem are more relevant : Notice that the screen was already loaded with a trace, i just change the trace id if the bottom. (This is in any case another problem than the one in this github issues) Immediatly after copy paste the trace which has missing subsegment problem : After a couple of second : (the screen blink when the "orphaned" node disappear) |
I have an issue with the XRay SDK for .Net.
Context : Hosting an AspNet Core 6.0 Api within custom runtime. Lambda are invoked throught Api gateway.
Any subsequent segment created after the first invocation are just lost and not displayed therefore in XRay console.
Note that the EF Core interceptor are used for an SQL Server database. Query are visible on the first invocation, not the subsequent.
Attached log file.
=> On first invocation, Subsegment emit log are cleary visible.
=> On subsequent, no more log, and there are not visible at all in console
log.txt
Thank in advance for any help for troubleshooting that strange issue
The text was updated successfully, but these errors were encountered: