Open xrn opened 3 months ago
Hey @xrn, This is definitely the right repo for your question!
I agree that this is not a good user experience. I'll take a deeper look into our code to see if we can improve this.
Hi again @xrn, so I think I have an idea of what is going on and have some ideas on how to proceed.
I think the reason you're seeing two different sets of tags is due to the way we determine the lambda event type. Using the inbound payload, we look at the structure of the json and given a series of expectations, we determine what type of event it is.
My suspicion is that your AWS_PROXY
functions are not being recognized in the same way as your other functions. You can confirm this by looking at the different inbound payloads which are saved on the aws.lambda
span.
As far as fixes go, I do not have enough information about your setup to give a full recommendation. However, I would suggest taking a look at DD_APM_REPLACE_TAGS
which might help you remap some of your tags.
If that doesn't work for you, I suggest opening a support ticket so we can take a closer look at your use case.
Hey @purple4reina thank you for your response. There is a ticket for that case - 1703458 hope that you would be access it, please let me know if this is a case.
My suspicion is that your AWS_PROXY functions are not being recognized in the same way as your other functions. You can confirm this by looking at the different inbound payloads which are saved on the aws.lambda span.
Is this something what you eventually would like to solve at libraries level?
I want to share one my additional observation. When lambda is connected to API Gateway and xray is enabled - in Lambda -> Monitor at bottom we can find section of Traces
- for both methods AWS and AWS_PROXY console is properly displaying in URL Address column https://{domain}/{stage}/{path}
- so this is another evidence for me that this should be aligned, and I think you should be easily able to reproduce it
@hghotra @purple4reina would like to check with you if there is a chance that above would be solved in predictable future.
Hey team,
My project is using
Lambda config
We are using API Gateway and Lambdas, And I found an incorrect behavior from end user perspective. When API Gateway integrates with Lambda using AWS intregration type all work well - I have nice tree of connected spans all is beautiful for over 50 endpoints which we have. Worth to note that API is represented as
https://domain.com
and properties likeBut there are 2 endpoint which are using AWS_PROXY integration type as they are returning binary files and such integration works better for us. And now traces are not so perfect - we are getting new service
domain.com
instead ofhttps://domain.com
with completly different set of properties which do not includes "api" json object. In some cases we see only connected that span + lambda in other we see that + full trace like in regular execution combined together.I am not sure if this is right repo, or maybe I should report this at Agent repo - but sth is wrong here - switch to AWS_PROXY integration type from AWS should not have that impact.
At the end this leads to:
https://domian/com
anddomain.com
AWS_PROXY
endpoints