René's URL Explorer Experiment


Title: fix(http): http.url tag should contain the path by florentinl · Pull Request #663 · DataDog/datadog-lambda-python · GitHub

Open Graph Title: fix(http): http.url tag should contain the path by florentinl · Pull Request #663 · DataDog/datadog-lambda-python

X Title: fix(http): http.url tag should contain the path by florentinl · Pull Request #663 · DataDog/datadog-lambda-python

Description: What does this PR do? The http.url_details.path tag is set by the backend as described in the span attributes guide of APM. When set by this tracer, it is replaced by the backend by a value parsed from the http.url which is always /. Here is an example of a trace received from an API Gateway event where the route can be correctly determined but the path is wrongly set for this reason: The path should be appended to the http.url tag instead. Motivation In the App and API Protection security traces explorer, we show the endpoint and the path is reported incorrectly for this reason. instead of the expected: Testing Guidelines Updated snapshots Updated unit tests Tested with API Gateway events where scheme and host are extracted Tested with ALB events where http.url is only set to the path Additional Notes Types of Changes Bug fix New feature Breaking change Misc (docs, refactoring, dependency upgrade, etc.) Check all that apply This PR's description is comprehensive This PR contains breaking changes that are documented in the description This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future This PR impacts documentation, and it has been updated (or a ticket has been logged) This PR's changes are covered by the automated tests This PR collects user input/sensitive content into Datadog This PR passes the integration tests (ask a Datadog member to run the tests)

Open Graph Description: What does this PR do? The http.url_details.path tag is set by the backend as described in the span attributes guide of APM. When set by this tracer, it is replaced by the backend by a value parsed ...

X Description: What does this PR do? The http.url_details.path tag is set by the backend as described in the span attributes guide of APM. When set by this tracer, it is replaced by the backend by a value parsed ...

Opengraph URL: https://github.com/DataDog/datadog-lambda-python/pull/663

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:789936f5-2bf7-5abd-a82e-5a472038e4d5
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idD502:157FAA:41EA45:5374F5:6990DD7F
html-safe-noncec76c3b5854ed896aed7d9d28cb900cb8924c9bb18d8fcc5c3bb32fe65b262402
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTAyOjE1N0ZBQTo0MUVBNDU6NTM3NEY1OjY5OTBERDdGIiwidmlzaXRvcl9pZCI6IjEzNjIwMDAyMzUxNzQzNTQzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8657efcc8ef6cdf6883e44a4c939a15673e9e08245bfd9ee77ebf671d7973f78
hovercard-subject-tagpull_request:2900068226
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/DataDog/datadog-lambda-python/pull/663/checks
twitter:imagehttps://avatars.githubusercontent.com/u/101594032?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/101594032?s=400&v=4
og:image:altWhat does this PR do? The http.url_details.path tag is set by the backend as described in the span attributes guide of APM. When set by this tracer, it is replaced by the backend by a value parsed ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/DataDog/datadog-lambda-python git https://github.com/DataDog/datadog-lambda-python.git
octolytics-dimension-user_id365230
octolytics-dimension-user_loginDataDog
octolytics-dimension-repository_id183265904
octolytics-dimension-repository_nwoDataDog/datadog-lambda-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id183265904
octolytics-dimension-repository_network_root_nwoDataDog/datadog-lambda-python
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/DataDog/datadog-lambda-python/pull/663/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDataDog%2Fdatadog-lambda-python%2Fpull%2F663%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDataDog%2Fdatadog-lambda-python%2Fpull%2F663%2Fchecks
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=DataDog%2Fdatadog-lambda-python
Reloadhttps://github.com/DataDog/datadog-lambda-python/pull/663/checks
Reloadhttps://github.com/DataDog/datadog-lambda-python/pull/663/checks
Reloadhttps://github.com/DataDog/datadog-lambda-python/pull/663/checks
DataDog https://github.com/DataDog
datadog-lambda-pythonhttps://github.com/DataDog/datadog-lambda-python
Notifications https://github.com/login?return_to=%2FDataDog%2Fdatadog-lambda-python
Fork 47 https://github.com/login?return_to=%2FDataDog%2Fdatadog-lambda-python
Star 97 https://github.com/login?return_to=%2FDataDog%2Fdatadog-lambda-python
Code https://github.com/DataDog/datadog-lambda-python
Issues 5 https://github.com/DataDog/datadog-lambda-python/issues
Pull requests 12 https://github.com/DataDog/datadog-lambda-python/pulls
Actions https://github.com/DataDog/datadog-lambda-python/actions
Security 0 https://github.com/DataDog/datadog-lambda-python/security
Insights https://github.com/DataDog/datadog-lambda-python/pulse
Code https://github.com/DataDog/datadog-lambda-python
Issues https://github.com/DataDog/datadog-lambda-python/issues
Pull requests https://github.com/DataDog/datadog-lambda-python/pulls
Actions https://github.com/DataDog/datadog-lambda-python/actions
Security https://github.com/DataDog/datadog-lambda-python/security
Insights https://github.com/DataDog/datadog-lambda-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FDataDog%2Fdatadog-lambda-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FDataDog%2Fdatadog-lambda-python%2Fissues%2Fnew%2Fchoose
florentinlhttps://github.com/florentinl
mainhttps://github.com/DataDog/datadog-lambda-python/tree/main
florentin.labelle/APPSEC-59536/fix-http.url-pathhttps://github.com/DataDog/datadog-lambda-python/tree/florentin.labelle/APPSEC-59536/fix-http.url-path
Conversation 3 https://github.com/DataDog/datadog-lambda-python/pull/663
Commits 1 https://github.com/DataDog/datadog-lambda-python/pull/663/commits
Checks 24 https://github.com/DataDog/datadog-lambda-python/pull/663/checks
Files changed https://github.com/DataDog/datadog-lambda-python/pull/663/files
Please reload this pagehttps://github.com/DataDog/datadog-lambda-python/pull/663/checks
Please reload this pagehttps://github.com/DataDog/datadog-lambda-python/pull/663/checks
fix(http): http.url tag should contain the path https://github.com/DataDog/datadog-lambda-python/pull/663/checks#top
Please reload this pagehttps://github.com/DataDog/datadog-lambda-python/pull/663/checks
devflow/mergegate https://github.com/DataDog/datadog-lambda-python/pull/663/checks?check_run_id=52710972467
CodeQL on: pull_request https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144285
Analyze (python) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144285/job/52710974224?pr=663
build on: pull_request https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346
lint https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989445?pr=663
unit-test (3.8) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989463?pr=663
unit-test (3.9) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989471?pr=663
unit-test (3.10) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989474?pr=663
unit-test (3.11) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989515?pr=663
unit-test (3.12) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989485?pr=663
unit-test (3.13) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144346/job/52710989461?pr=663
System Tests on: pull_request https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537
build https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711020667?pr=663
system-tests / Get parameters / Get parameters https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711210544?pr=663
system-tests / parametric https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711406664?pr=663
system-tests / Build end-to-end (alb) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711417790?pr=663
system-tests / Build end-to-end (alb-multi) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711417774?pr=663
system-tests / Build end-to-end (apigw-http) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711417864?pr=663
system-tests / Build end-to-end (apigw-rest) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711417879?pr=663
system-tests / Build end-to-end (function-url) https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711417796?pr=663
system-tests / End-to-end #1 / alb 1 https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711679391?pr=663
system-tests / End-to-end #1 / alb-multi 1 https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711679455?pr=663
system-tests / End-to-end #1 / apigw-http 1 https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711679573?pr=663
system-tests / End-to-end #1 / apigw-rest 1 https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711679704?pr=663
system-tests / End-to-end #1 / function-url 1 https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711679628?pr=663
system-tests / Report failures https://github.com/DataDog/datadog-lambda-python/actions/runs/18499144537/job/52711986889?pr=663
CodeQL https://github.com/DataDog/datadog-lambda-python/pull/663/checks?check_run_id=52711107589
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.