-
Notifications
You must be signed in to change notification settings - Fork 89
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
Symfony Bundle compatibility updates for beta #169
Conversation
wadjei
commented
Jun 19, 2023
- Change configuration to be based on SpanExporterFactory definitions instead of Exporter factories - this facilitates the injection of TransportInterfaces rather than the client etc.
- Remove references to obsolete, removed Jaeger and NewRelic exporters
- Updated unit and integration tests
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
============================================
+ Coverage 7.82% 27.97% +20.14%
- Complexity 242 584 +342
============================================
Files 25 49 +24
Lines 971 2295 +1324
============================================
+ Hits 76 642 +566
- Misses 895 1653 +758
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 19 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Looking good! Just a couple of minor comments from me - newrelic and DSN-based config. There were more newrelic mentions in the code that I didn't comment on, could you search and remove?
edit: if the tests are now passing for symfony, they can be re-enabled (in .github/workflows)
src/Symfony/src/OtelSdkBundle/DependencyInjection/ConfigMappings.php
Outdated
Show resolved
Hide resolved
src/Symfony/src/OtelSdkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/tests/Integration/OtelSdkBundle/DependencyInjection/OtelSdkExtensionTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/tests/Integration/OtelSdkBundle/DependencyInjection/config/exporters/config.yaml
Outdated
Show resolved
Hide resolved
src/Symfony/tests/Integration/OtelSdkBundle/DependencyInjection/config/exporters/config.yaml
Outdated
Show resolved
Hide resolved
the workflow seems to be happy with Symfony tests re-enabled, but having rebased on main, there's a lot of new failures in AWS, Logs/Monolog and Instrumentation seemingly unconnected with my changes |
Actively fixing those, most are OK now if you re-base. In any case, definitely not caused by you and I don't think a blocker for this PR. |
@wadjei let's get this merged. There's a failing style check for symfony that should be an easy fix ( |
* Change configuration to be based on SpanExporterFactory definitions instead of Exporter factories - this facilitates the injection of TransportInterfaces rather than the client etc. * Remove references to obsolete, removed Jaeger and NewRelic exporters * Updated unit and integration tests
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/phpstan/phpstan-symfony/extension.neon | ||
- vendor/jangregor/phpstan-prophecy/extension.neon |
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.
I wanted to avoid adding this config but without it phpstan cannot deal with prophecy mocks
@brettmc thanks for reviewing and merging... A few minor things left over
|
|