-
Notifications
You must be signed in to change notification settings - Fork 63
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
XRay Subsegment In Lambda Constructor Not Appearing in XRay Trace #289
Comments
Hi @BradKnowles If you've done the above, can you provide us the debug logs for investigation? You can find the information to setup logging here. Alternatively, if you are interested in using OpenTelemetry, you can try out the AWS Distro for OpenTelemetry to instrument your Lambda function using the vended lambda layer. |
I'll work on providing the logging, as we are getting XRay traces for all other subsegments, just not ones placed in the constructor. |
These are the logs I recorded. The logs before
|
Have you gotten a chance to review my posted logs @srprash ? |
Thanks for providing the logs. It seems like the trace header is only present in the However, I'm confused by the fact that we don't even see any logs indicating creation of the |
Apologies for the delay, I will try to get something to you this week. |
@srprash a demo repository can be found here - https://github.com/BradKnowles/xray-constructor-issue-289 |
Following up with you @srprash to see if I can provide any more help in tracking this down. |
1 similar comment
Following up with you @srprash to see if I can provide any more help in tracking this down. |
I'm using XRay in a .NET 6, pure (no ASP.NET), Lambda function and attempting to get insight into initialization performance. Below is a sample of the Function's constructor.
The
Constructor
subsegment never appears in the XRay Trace. Is there something else needed to have these subsegments appear in XRay.Package Versions
Amazon.Lambda.Core - 2.1.0
AWSXRayRecorder.Core - 2.14.0
AWSXRayRecorder.Handlers.AwsSdk - 2.12.0
The text was updated successfully, but these errors were encountered: