-
Notifications
You must be signed in to change notification settings - Fork 153
Bug: Fetch traces only capture the hostname of the request URL #2954
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
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hi @gruntster, thank you for taking the time to report the issue. I looked into it and I am able to reproduce the behavior you described. When making requests with I'll be working on a fix before this week's release. |
This issue is now closed. Please be mindful that future comments are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so. |
This is now released under v2.8.0 version! |
Expected Behavior
The request URL captured by the trace of a Fetch request should be the URL of the request.
Current Behavior
The request URL captured by the trace of a Fetch request is only the requested hostname.
Code snippet
Steps to Reproduce
AWS_XRAY_DEBUG_MODE
environment variable totrue
of an instrumented Lambda function.fetch
andnode:https
fetch emits incorrect request URL:
node:https emits correct request URL:
Possible Solution
Modify the
onRequestStart
function of the Tracer'sProviderService
to generate a URL rather than use the hostname.For example, modify to the following:
Powertools for AWS Lambda (TypeScript) version
2.7.0
AWS Lambda function runtime
20.x
Packaging format used
npm
Execution logs
No response
The text was updated successfully, but these errors were encountered: