-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Custom Instrumentation Documentation #1942
Merged
Merged
Conversation
This file contains 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
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
function set_user(string $userId, ?array $metadata = null, ?bool $propagate = null): void {} | ||
|
||
/** | ||
* Get the value of a DD environment variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
* Get the value of a DD environment variable | |
* Get the parsed value of a DD environment variable |
bwoebi
reviewed
Feb 27, 2023
Can you please consistently leave a blank line in the docblocks between the description and the first @-line? |
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
bwoebi
reviewed
Feb 27, 2023
Some tests are still failing on PHP 7.0 and 7.1. I'm working on it.
Note: There may be even more functions with this issue
Note: There are still some core dump issues in api randomized stress tests
Note: The last commit introduced a fatal error (Internal zval's can't be arrays, objects or resources in Unknown on line 0) that could be observed in the c tests in the 7.x versions of PHP. As a result, functions weren't defined.
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
b9d1a39
to
24f8fa3
Compare
This is primarily motivated by PHP 8.1 strongly enforcing types declared by the arginfos. Given the stubs, we now have full arginfos and PHP becomes much more picky. This is a good thing though, so, we're going to eventually always throw TypeErrors. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
24f8fa3
to
955d578
Compare
…c_custom_instrumentation
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
bwoebi
approved these changes
Mar 10, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all these docs :-)
This was referenced Mar 10, 2023
Merged
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
Add documentation for the function and classes declared in ddtrace.c, related to custom instrumentation.
Fixes #1574.
As part of this pull request, by necessity, we are moving to TypeError'ing out on bad parameters to DDTrace functions, see also 24f8fa3.
Readiness checklist
Reviewer checklist