Skip to content

Add dynamic instrumentation and exception replay to startup logging#3667

Merged
bwoebi merged 1 commit intoDataDog:masterfrom
p-datadog:add-di-exception-replay-to-startup-logs
Mar 17, 2026
Merged

Add dynamic instrumentation and exception replay to startup logging#3667
bwoebi merged 1 commit intoDataDog:masterfrom
p-datadog:add-di-exception-replay-to-startup-logs

Conversation

@p-datadog
Copy link
Copy Markdown
Member

Description

The startup configuration JSON now includes the status of DD_DYNAMIC_INSTRUMENTATION_ENABLED and DD_EXCEPTION_REPLAY_ENABLED, making it easier to verify these features are configured correctly when the tracer starts up.

Changes:

  • Added dynamic_instrumentation_enabled field to startup logging output
  • Added exception_replay_enabled field to startup logging output
  • Updated tests to expect the new fields

Example output:

{
  ...
  "sidecar_trace_sender": true,
  "dynamic_instrumentation_enabled": false,
  "exception_replay_enabled": false,
  "loaded_by_ssi": false
}

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@p-datadog p-datadog requested a review from a team as a code owner February 22, 2026 10:54
The startup configuration JSON now includes the status of
DD_DYNAMIC_INSTRUMENTATION_ENABLED and DD_EXCEPTION_REPLAY_ENABLED,
making it easier to verify these features are configured correctly
when the tracer starts up.

Updated the corresponding tests to expect these new fields.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@p-datadog p-datadog force-pushed the add-di-exception-replay-to-startup-logs branch from 537c03f to 52fa417 Compare February 22, 2026 10:59
@datadog-prod-us1-4
Copy link
Copy Markdown

datadog-prod-us1-4 bot commented Mar 17, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 13 Tests failed

testSearchPhpBinaries from integration.DDTrace\Tests\Integration\PHPInstallerTest (Datadog) (Fix with Cursor)
DDTrace\Tests\Integration\PHPInstallerTest::testSearchPhpBinaries
Test code or tested code printed unexpected output: Searching for available php binaries, this operation might take a while.
testSimplePushAndProcess from laravel-58-test.DDTrace\Tests\Integrations\Laravel\V5_8\QueueTest (Datadog) (Fix with Cursor)
Risky Test
phpvfscomposer://tests/vendor/phpunit/phpunit/phpunit:97
testSimplePushAndProcess from laravel-8x-test.DDTrace\Tests\Integrations\Laravel\V8_x\QueueTest (Datadog) (Fix with Cursor)
DDTrace\Tests\Integrations\Laravel\V8_x\QueueTest::testSimplePushAndProcess
Test code or tested code printed unexpected output: spanLinksTraceId: 69b965e40000000088db7da2ed945f69
tid: 69b965e400000000
hexProcessTraceId: 88db7da2ed945f69
hexProcessSpanId: 9955b62bd2b5b24e
processTraceId: 9861613947781930857
processSpanId: 11048937560158351950
View all

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 52fa417 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me :-)

@bwoebi bwoebi merged commit f4ce0bf into DataDog:master Mar 17, 2026
2035 of 2061 checks passed
bwoebi added a commit that referenced this pull request Mar 20, 2026
…dd-update

* 'master' of github.com:DataDog/dd-trace-php:
  feat(sidecar): add thread mode as fallback connection for restricted environments (#3573)
  Migrate deprecated GitLab runner tags (#3715)
  Adds process tags to remote config payload (#3658)
  perf(config): cache sys getenv (#3670)
  Fixes the tag name for process tags (#3709)
  Fix debugger ephemerals handling (#3685)
  Fix #3651: Prevent crash during shutdown in Frankenphp (#3662)
  Add dynamic instrumentation and exception replay to startup logging (#3667)
  chore: bump bytes crate from 1.9.0 to 1.11.1 to address CVE-2026-25541 (#3669)
  Merge pull request #3701 from DataDog/brian.marks/add-ksr-tag
  ci: fix Windows job flakiness caused by dirty workspace (#3694)
  Fixup CI owner association (#3704)
  Add Rust rewrite of the AppSec helper alongside the C++ implementation
  Remove debug instruction
  Fix script order
  debug
  Fix exploration logic
  chore(ci): add final_status property on junit XML [APMSP-2610]
  Fix DD_TRACE_SYMFONY_HTTP_ROUTE=false
  Optimize Symfony http.route caching with path map approach
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.

3 participants