Split the tracer parts off from ext directory#3912
Conversation
|
There was a problem hiding this comment.
💡 Codex Review
dd-trace-php/tracer/weakrefs.c
Line 3 in 7f32d1d
After moving weakrefs.c to tracer/, it still includes "compatibility.h" as if it were in ext/. In this commit config.m4 also drops PHP_ADD_INCLUDE([$ext_srcdir/ext]), so for PHP 8.0/8.1 builds (where weakrefs.c is compiled) the header is no longer resolvable and the build fails. Use #include <ext/compatibility.h> (or restore/include the ext include path) to keep those builds working.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
1bc2038 to
4a29a16
Compare
Benchmarks [ profiler ]Benchmark execution time: 2026-06-02 15:20:16 Comparing candidate commit b0051dc in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 8 unstable metrics.
|
bdedead to
0dbe6ac
Compare
Benchmarks [ appsec ]Benchmark execution time: 2026-06-02 15:42:08 Comparing candidate commit b0051dc in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics.
|
Benchmarks [ tracer ]Benchmark execution time: 2026-06-02 16:19:04 Comparing candidate commit b0051dc in PR branch Found 1 performance improvements and 6 performance regressions! Performance is the same for 187 metrics, 0 unstable metrics.
|
99f2b5b to
fdffb6e
Compare
6b80a13 to
c94e0c3
Compare
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. If you need to update snapshots, please refer to CONTRIBUTING.md |
437f6e6 to
ce6fc63
Compare
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
| #endif | ||
| extern ddog_LiveDebuggerSetup ddtrace_live_debugger_setup; | ||
|
|
||
| ddtrace_span_data *ddtrace_active_span(void); |
There was a problem hiding this comment.
Shoudn't this one be in a #ifdef DDTRACE guard as well ?
There was a problem hiding this comment.
Agree, let's fully ifdef this, gives compile warnings rather than runtime link failures.
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Move all the things.
Drop a few obsolete things.
Change nearly no code.