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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:789936f5-2bf7-5abd-a82e-5a472038e4d5 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D502:157FAA:41EA45:5374F5:6990DD7F |
| html-safe-nonce | c76c3b5854ed896aed7d9d28cb900cb8924c9bb18d8fcc5c3bb32fe65b262402 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTAyOjE1N0ZBQTo0MUVBNDU6NTM3NEY1OjY5OTBERDdGIiwidmlzaXRvcl9pZCI6IjEzNjIwMDAyMzUxNzQzNTQzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8657efcc8ef6cdf6883e44a4c939a15673e9e08245bfd9ee77ebf671d7973f78 |
| hovercard-subject-tag | pull_request:2900068226 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/DataDog/datadog-lambda-python/pull/663/checks |
| twitter:image | https://avatars.githubusercontent.com/u/101594032?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/101594032?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/DataDog/datadog-lambda-python git https://github.com/DataDog/datadog-lambda-python.git |
| octolytics-dimension-user_id | 365230 |
| octolytics-dimension-user_login | DataDog |
| octolytics-dimension-repository_id | 183265904 |
| octolytics-dimension-repository_nwo | DataDog/datadog-lambda-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 183265904 |
| octolytics-dimension-repository_network_root_nwo | DataDog/datadog-lambda-python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width