Conversation
ece36d5 to
c4908ea
Compare
de7925c to
76a165c
Compare
ffefd60 to
0b687e2
Compare
morrisonlevi
reviewed
Jul 6, 2020
e285c91 to
4e8e353
Compare
morrisonlevi
approved these changes
Jul 6, 2020
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds startup logs that contain a JSON-encoded string of configuration and diagnostic information. The JSON can be provided to the support team to help identify configuration issues. The log message is only generated on process startup and can be disabled by setting
DD_TRACE_STARTUP_LOGS=0.Example startup message
When debug mode is enabled (
DD_TRACE_DEBUG=1), failed diagnostic tests will also generate log messages:PHP Info
The JSON string can also be obtained from the PHP info page and the diagnostic information will be displayed in a separate table to help diagnose common issues.
From the CLI SAPI, the info can be obtained from
php --ri=ddtrace.The JSON string can also be accessed at runtime from
\DDTrace\startup_logs().Readiness checklist
Reviewer checklist