-
-
Notifications
You must be signed in to change notification settings - Fork 46
feat(blackfire): Add bridge for upscale/swoole-blackfire #221
Conversation
This feature seems to be useful, so yeah feel free to contribute :) |
Codecov Report
@@ Coverage Diff @@
## develop #221 +/- ##
=============================================
+ Coverage 87.09% 87.23% +0.13%
- Complexity 612 617 +5
=============================================
Files 84 85 +1
Lines 1883 1903 +20
=============================================
+ Hits 1640 1660 +20
Misses 243 243
|
…est to test wiring
I've added the following:
Let me know if something else should be changed! |
@luca-nardelli Thanks, really good job! I've left some comments, we'll have to address them and I think that's it. |
Fixed the usage of the service container (thanks for that!) and removed the unused property! |
Co-authored-by: Konrad Obal <konradobal@gmail.com>
9a7e306
to
c102382
Compare
Ok I should have applied all your suggestions |
Code Climate has analyzed commit c102382 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 87.2% (0.2% change). View more on Code Climate. |
@luca-nardelli Thanks again for your hard work, I'll leave this on |
Great! Thank you for the bundle :)
Il sab 23 mag 2020, 14:45 Konrad Obal <notifications@github.com> ha scritto:
… @luca-nardelli <https://github.com/luca-nardelli> Thanks again for your
hard work, I'll leave this on develop branch for a bit, then release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#221 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPNL6UPUHQJPWBMOF3TT5TRS7AOFANCNFSM4NGK4FCA>
.
|
* build(deps-dev): bump doctrine/annotations from 1.10.2 to 1.10.3 (#223) ([94ef806](94ef806)), closes [#223](#223) * build(deps-dev): bump phpstan/phpstan from 0.12.28 to 0.12.29 (#249) ([ebf9ce1](ebf9ce1)), closes [#249](#249) * build(deps-dev): bump phpstan/phpstan-doctrine from 0.12.15 to 0.12.16 (#248) ([830a9ef](830a9ef)), closes [#248](#248) * build(deps-dev): bump phpstan/phpstan-doctrine from 0.12.16 to 0.12.17 (#263) ([d796528](d796528)), closes [#263](#263) * chore(composer): add suggestion to use pixelfederation/doctrine-resettable-em-bundle to be able to r ([496c5fe](496c5fe)), closes [#226](#226) * chore(composer): upgrade deps (#246) ([7e44a89](7e44a89)), closes [#246](#246) * chore(composer): upgrade deps (#262) ([c9b218a](c9b218a)), closes [#262](#262) * chore(deps): upgrade composer dependencies (#222) ([37d2517](37d2517)), closes [#222](#222) * fix(config): allow configuring worker and reactor counts using ENV variables (#244) ([d6b270a](d6b270a)), closes [#244](#244) * fix(profiler): make log collection in symfony profiler to work (#242) ([50fdd6f](50fdd6f)), closes [#242](#242) * refactor(error-handler): move to proper namespace (#251) ([4c1c3e9](4c1c3e9)), closes [#251](#251) * feat(blackfire): Add bridge for upscale/swoole-blackfire (#221) ([960ddb8](960ddb8)), closes [#221](#221) * feat(exception-handler): Add Symfony error/exception handler (#228) ([180d5e5](180d5e5)), closes [#228](#228) * feat(http-server): configurable mime types for advanced static files server (#240) ([07896a4](07896a4)), closes [#240](#240) * ci(circle): upgrade docker client image to v19.03.11 (#239) ([fe7b46c](fe7b46c)), closes [#239](#239)
Hi again!
I noticed that I was unable to profile requests with blackfire (before swoole I was using the standard nginx + php-fpm setup), as
blackfire curl
only told me that the probe was not initialized. After a while I stumbled upon this library https://github.com/upscalesoftware/swoole-blackfire and I tried to connect it to this bundle.I've managed to make it work (I had to add the WithProfiler configurator after WithRequestHandler otherwise the instrumentation call would fail), however I didn't write any tests at the moment so I'd say the PR cannot be merged yet. I'm opening this PR to discuss this feature (with the proposed implementation)
Question 1: Is this a relevant addition to the bundle?
Question 2: Could you tell me which test I should look at if I wanted to write one for this new feature?
Thanks!