Conversation
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) 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 #3136 +/- ##
============================================
- Coverage 56.98% 56.94% -0.04%
- Complexity 2883 2885 +2
============================================
Files 141 141
Lines 15844 15855 +11
Branches 1094 1094
============================================
Hits 9028 9028
- Misses 6243 6254 +11
Partials 573 573
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Benchmarks [ tracer ]Benchmark execution time: 2025-03-31 09:38:44 Comparing candidate commit 0d86cb3 in PR branch Found 1 performance improvements and 4 performance regressions! Performance is the same for 173 metrics, 0 unstable metrics. scenario:EmptyFileBench/benchEmptyFileBaseline
scenario:EmptyFileBench/benchEmptyFileBaseline-opcache
scenario:EmptyFileBench/benchEmptyFileOverhead
scenario:EmptyFileBench/benchEmptyFileOverhead-opcache
scenario:PDOBench/benchPDOBaseline-opcache
|
PROFeNoM
left a comment
There was a problem hiding this comment.
The extension code looks good to me 👍 I left a small, yet important comment for the Integration part.
Additionally, on the bob/drop-span-tests branch, I've added a commit adding Symfony CLI Tests. Feel free to cherry pick it 😃 (I haven't checked if the CI passes as I'm writing these words)
| */ | ||
| foreach (['Symfony\Component\Console\Terminal::hasSttyAvailable', 'Symfony\Component\Console\Helper\QuestionHelper::isInteractiveInput'] as $method) { | ||
| \DDTrace\install_hook($method, function (HookData $hook) { | ||
| \DDTrace\active_stack()->spanCreationObservers[] = function (SpanData $span) use ($hook) { |
There was a problem hiding this comment.
| \DDTrace\active_stack()->spanCreationObservers[] = function (SpanData $span) use ($hook) { | |
| $hook->data = false; | |
| \DDTrace\active_stack()->spanCreationObservers[] = function (SpanData $span) use ($hook) { |
Considering that when the pre-hook first runs, $hook->data is not initialized, I believe that we would otherwise try to access the value in the span creation closure before it's initialized.
There was a problem hiding this comment.
That's absolutely right, and thanks for adding tests, hadn't gotten round to that yet!
Signed-off-by: Bob Weinand <[email protected]>
|
@bwoebi hey, I was just staging our integration after the update to 1.8.0 but this seems to be causing the following error: [ddtrace] [error] There is no user-span on the top of the stack. Cannot close.This is reproducible for me on any CLI command on a skeleton symfony 7.2 app. composer create-project symfony/skeleton:"7.2.x" skeleton --quiet && (bin/console | grep ddtrace)on the following env: |
|
@Gaitholabi You are right and we messed up :-/ We do have detection for |
|
@bwoebi Thank you! appreciated. |
|
@Gaitholabi Hotfix released as 1.8.1; thanks again! |
Allow dropping top-of-stack (i.e. active) spans in a safe manner.