Skip to content

fix(loader): surface SSI incompatible runtime#4021

Merged
iamluc merged 4 commits into
masterfrom
luc/surface-ssi-incompatible-runtime
Jun 29, 2026
Merged

fix(loader): surface SSI incompatible runtime#4021
iamluc merged 4 commits into
masterfrom
luc/surface-ssi-incompatible-runtime

Conversation

@iamluc

@iamluc iamluc commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

Surface PHP SSI cases where the loader keeps the extension loaded but disables the tracer because an incompatible runtime configuration was detected, such as Xdebug or OPcache JIT. The loader now reports this as incompatible_runtime injection metadata so diagnostics can explain why profiles appear while traces are missing.

Related Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / cleanup
  • CI / tooling
  • Documentation

Checklist

  • Documentation updated if needed
  • Tests added or updated
  • No unintended breaking changes

How Has This Been Tested?

  • make -C loader -j$(nproc)

Additional Notes

The focused Xdebug functional test was updated to assert the telemetry payload. It was not run locally because the available php binary fails to start due to a missing libicuio.so.70 shared library.

iamluc added 2 commits June 29, 2026 12:08
Report tracer disablement from incompatible PHP extensions as
incompatible runtime telemetry so SSI diagnostics explain why traces are
missing while profiling still works.
Cover the OPcache JIT path so the loader reports the same incompatible
runtime telemetry as extension-based tracer disablement.
@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jun 29, 2026

Copy link
Copy Markdown

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 9 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | test_extension_ci: [8.1]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | test_extension_ci: [8.3]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | test_extension_ci: [8.4]   View in Datadog   GitLab

View all 9 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog auto-retried 1 job - 1 passed on retry View in Datadog

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 54.08% (-0.04%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9483ad3 | Docs | Datadog PR Page | Give us feedback!

Comment thread loader/tests/functional/test_incompatibility_xdebug.php Outdated
Co-authored-by: Bob Weinand <bob.weinand@datadoghq.com>
@iamluc
iamluc marked this pull request as ready for review June 29, 2026 12:40
@iamluc
iamluc requested a review from a team as a code owner June 29, 2026 12:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 56d61c9344

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread loader/tests/functional/test_incompatibility_xdebug.php Outdated
Accept the additional profiling incompatible-runtime telemetry emitted on
PHP 7.0 when the Xdebug loader scenario runs.
@iamluc

iamluc commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 9483ad365e

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bwoebi bwoebi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks Luc!

@iamluc
iamluc merged commit 2b95de2 into master Jun 29, 2026
2152 of 2156 checks passed
@iamluc
iamluc deleted the luc/surface-ssi-incompatible-runtime branch June 29, 2026 14:54
@github-actions github-actions Bot added this to the 1.23.0 milestone Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants