-
Notifications
You must be signed in to change notification settings - Fork 147
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
Trace http response code when set via function 'http_response_code' #755
Trace http response code when set via function 'http_response_code' #755
Conversation
Hi @aderiyenko thanks so much for the contribution. Let us take a look into it asap and see why tests are failing! We will be able to help with that part. |
Hi @labbati , thanks ! As I understand this change (adding a callback for Few questions here.
Please confirm if my understanding of the testing approach is correct (p.1) |
Hi @labbati , any update from your end? Thanks! |
looking into this right now |
Hi @labbati , I updated #756 with some info yesterday, so I basically had to switch to 5.6 and 7.0 containers and start with their suites. And for 5.6 I also pushed some changes to docker-compose (see changes here) related to the context of the 5.6 dockerfile building. LMK if it makes sense. Right now I'm continuing writing integration tests for 5.6 and 7.0 . I'd appreciate if you can confirm my approach in p.1 in the comment above. Thanks! |
Hi @aderiyenko, no need to add tests for ALL the combinations. In this case it is enough to add one integration test for a generic web request. I can do it adding a commit to your PR if you like, you were already very kind contributed the functionality. In case you want to do it, you can add one specific test method to My apologies for having looked at your PR sooner. |
so just to make sure:
|
Here is what I would do:
The reason why I am proposing this is that this is not something specific to a web framework specifically, so it should not be part of every web framework test. We use web frameworks test to test internal spans that are very specific of every framework. In this case we only need to test this functionality as a generic one. Does it make sense? |
@labbati do you know why this https://github.com/DataDog/dd-trace-php/pull/755/files#diff-6faa5b95536965feb0d26b3065c9430aR182 is not marking the span as |
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.
Hi @aderiyenko and thanks for the fantastic work so far.
Here you find the final steps to get it merged.
I hope I listed the steps clearly enough to be easy to follow.
Also, I updated the contributing guides: #769 |
Thanks! I think it helps a lot anyone who wants to contribute |
seeing a segfault in the pipeline and not sure how to restart it without any extra commits |
@morrisonlevi will add now, just saw your comment, huge thanks! |
The `if ($args)` and `isset($args[0])` are essentially checking the same thing, so I removed one.
Thanks @morrisonlevi and @labbati ! When do you think 0.41 will be released? |
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.
Great work @aderiyenko, merging this PR right now.
early next week |
sounds great, thanks again for all your help with this! |
Description
fixes #750
Readiness checklist
Reviewer checklist