Conversation
…ent payload Split startupLog into three independent functions so config is logged immediately at init (via proxy.js) while integrations are logged later on first agent payload (via writer.js). This gives users config info faster without losing the integrations_loaded field that was regressed in #7470. Also fixes broken agent error logging introduced in #7212 where `startupLog({ agentError: err })` didn't match the expected `{ status, message }` shape. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Overall package sizeSelf size: 4.87 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 816.75 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7643 +/- ##
=======================================
Coverage 80.28% 80.29%
=======================================
Files 738 738
Lines 31897 31908 +11
=======================================
+ Hits 25610 25622 +12
+ Misses 6287 6286 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-03-03 19:36:19 Comparing candidate commit cf2f59b in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 232 metrics, 28 unstable metrics. |
#7643) * fix(startup-log): emit config early at init, integrations on first agent payload Split startupLog into three independent functions so config is logged immediately at init (via proxy.js) while integrations are logged later on first agent payload (via writer.js). This gives users config info faster without losing the integrations_loaded field that was regressed in #7470. Also fixes broken agent error logging introduced in #7212 where `startupLog({ agentError: err })` didn't match the expected `{ status, message }` shape. Co-Authored-By: Claude Opus 4.6 <[email protected]> * ci: re-run CI --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
#7643) * fix(startup-log): emit config early at init, integrations on first agent payload Split startupLog into three independent functions so config is logged immediately at init (via proxy.js) while integrations are logged later on first agent payload (via writer.js). This gives users config info faster without losing the integrations_loaded field that was regressed in #7470. Also fixes broken agent error logging introduced in #7212 where `startupLog({ agentError: err })` didn't match the expected `{ status, message }` shape. Co-Authored-By: Claude Opus 4.6 <[email protected]> * ci: re-run CI --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
What does this PR do?
Splits the startup log into three independent log events so config is emitted early while integrations
are logged later:
startupLog()— LogsDATADOG TRACER CONFIGURATIONimmediately at init (called fromproxy.js#updateTracing). Excludesintegrations_loadedsince plugins haven't loaded yet.logIntegrations()— LogsDATADOG TRACER INTEGRATIONS LOADEDon first agent payload (calledfrom
writer.js), by which time the app has loaded its dependencies.logAgentError()— LogsDATADOG TRACER DIAGNOSTIC - Agent Error: ...separately with proper{ status, message }shape.Each function has its own
alreadyRanguard.tracerInfo()is unchanged (still includesintegrations_loadedfor the flare module).Motivation
flagged —
integrations_loadedwas always empty because plugins hadn't loaded yet at init time. Revert "fix(startup-log): emit immediately after init and send to stderr" #7478reverted fix(startup-log): emit immediately after init and send to stderr #7470 entirely, and fix(startup-log): send startup logs to stderr #7502 only re-applied the stderr level change.
startupLog({ agentError: err })didn't match thefunction's expected
{ status, message }shape, soagentError.messagewas alwaysundefined.Additional Notes
configInfo()(private helper) doesn't referencepluginManagerat all, making it structurallyimpossible for
integrations_loadedto leak into the early config log.still excludes integrations" scenarios.
startupLogsconfig flag.