Provide path params to appsec#2395
Conversation
d66167b to
191cf92
Compare
78603d4 to
dbb9ebd
Compare
c084565 to
cd8c66e
Compare
cd8c66e to
8af66e2
Compare
PROFeNoM
left a comment
There was a problem hiding this comment.
LGTM 😃 I would rebase onto master/merge master, though, before merging into master, considering the Debug Logs PR was merged and could spot errors, if any :)
3a1d871 to
f2f61ff
Compare
BenchmarksBenchmark execution time: 2024-03-28 10:19:27 Comparing candidate commit 6c0628b in PR branch Found 3 performance improvements and 3 performance regressions! Performance is the same for 176 metrics, 0 unstable metrics. scenario:ContextPropagationBench/benchExtractHeaders64Bit-opcache
scenario:ContextPropagationBench/benchExtractTraceContext128Bit-opcache
scenario:ContextPropagationBench/benchExtractTraceContext64Bit-opcache
scenario:LogsInjectionBench/benchLogsInfoBaseline-opcache
scenario:PDOBench/benchPDOOverheadWithDBM-opcache
scenario:TraceSerializationBench/benchSerializeTrace
|
f2f61ff to
3b7fc5c
Compare
Anilm3
left a comment
There was a problem hiding this comment.
Just did a quick pass over the extension code and left a few comments.
On the other hand, note that request_init already sends an inferred path_params. Do you have any thoughts on how we could avoid sending those unnecessary path_params ?
|
There should also be appsec integration tests . |
8f56c6d to
ae18b39
Compare
Right now there is nothing implemented that makes this easy. The options are:
|
|
ddaf9e6 to
305bd51
Compare
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (71.11%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #2395 +/- ##
============================================
- Coverage 76.90% 75.78% -1.12%
- Complexity 2564 2577 +13
============================================
Files 215 241 +26
Lines 23095 27112 +4017
Branches 0 985 +985
============================================
+ Hits 17761 20548 +2787
- Misses 5334 6039 +705
- Partials 0 525 +525
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 26 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
85a35c3 to
c421615
Compare
Description
Extracts path parameters from incoming requests and attaches them to the span.
The implementation extracts params from the framework's route match result, which already has the parameter map populated after routing and adds them to the span. Works across Laravel, Symfony, and WordPress using each framework's native param extraction.
Readiness checklist
Reviewer checklist
APPSEC-14738