feat: decouple startup logs from DD_TRACE_DEBUG#3749
Conversation
…ACE_DEBUG Previously, startup logs were only emitted when DD_TRACE_DEBUG was enabled. This decouples DD_TRACE_STARTUP_LOGS from DD_TRACE_DEBUG so that setting DD_TRACE_STARTUP_LOGS=true emits startup configuration logs regardless of the debug flag or SAPI type. Also changes the default of DD_TRACE_STARTUP_LOGS from true to false. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…S=true Instead of routing startup logs through the tracing log system (which goes to PHP's error_log), write them directly to stderr when DD_TRACE_STARTUP_LOGS is enabled. This ensures startup configuration is always visible regardless of PHP's error_log setting. The LOGEV(STARTUP, ...) path is preserved for when DD_TRACE_DEBUG enables it through the log level system. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
✨ Fix all issues with BitsAI or with Cursor
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3749 +/- ##
===========================================
+ Coverage 68.78% 86.77% +17.98%
===========================================
Files 166 24 -142
Lines 19015 5269 -13746
Branches 1792 0 -1792
===========================================
- Hits 13079 4572 -8507
+ Misses 5124 697 -4427
+ Partials 812 0 -812
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: 2026-03-27 23:45:59 Comparing candidate commit 493a634 in PR branch Found 1 performance improvements and 2 performance regressions! Performance is the same for 190 metrics, 1 unstable metrics. scenario:MessagePackSerializationBench/benchMessagePackSerialization
scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:TraceSerializationBench/benchSerializeTrace
|
Description
Decouples
DD_TRACE_STARTUP_LOGSfromDD_TRACE_DEBUGso that settingDD_TRACE_STARTUP_LOGS=trueemits startup configuration logs directly to stderr, regardless of whether debug mode is enabled or how PHP'serror_logis configured.Changes:
DD_TRACE_STARTUP_LOGS=true, startup logs (DATADOG TRACER CONFIGURATION JSON + diagnostics) are written directly to stderr viafprintfLOGEV(STARTUP, ...)path through the tracing log system is preserved for whenDD_TRACE_DEBUGenables itDD_TRACE_STARTUP_LOGSfromtruetofalseReviewer checklist
🤖 Generated with Claude Code