Skip to content
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

Symfony5 support #113

Closed
b-viguier opened this issue Feb 25, 2021 · 4 comments
Closed

Symfony5 support #113

b-viguier opened this issue Feb 25, 2021 · 4 comments
Assignees
Labels
bug Something isn't working CH Community Hero help wanted Extra attention is wanted. We would love community assistance!

Comments

@b-viguier
Copy link
Contributor

Summary

The NR php agent supports Symfony framework from version 1 to 4. Since version 5, some breaking changes may prevent NR extension to report all expected information. Is SF5 support in your Roadmap?

Desired Behavior

  • Auto-detect SF5 framework usage
  • Report exceptions

Possible Solution

SF5 replaces the ExceptionListener class by ErrorListener (see UPGRADE instructions). Unfortunately, NR extension is explicitly looking for ExceptionListener class, to wrap it and report exceptions.

nr_php_wrap_user_function(
NR_PSTR("Symfony\\Component\\HttpKernel\\"
"EventListener\\ExceptionListener::onKernelException"),
nr_symfony4_exception TSRMLS_CC);

By detecting SF5 framework, we could change wrapped function… if I understand the code correctly 😅

Additional context

None.

Thanks for your work 👍

@b-viguier b-viguier added the enhancement New feature or request label Feb 25, 2021
@joaojacome
Copy link

IMO the framework-specific functions should be delegated to a composer package, instead of locking the frameworks in the extension.

@jodeev jodeev added the PM PM to review against project priorities. label Mar 3, 2021
@jodeev jodeev added this to Triage - tag + prioritize. in PHP/C Engineering Board Mar 3, 2021
@jodeev jodeev self-assigned this Mar 3, 2021
@ak-war ak-war added the help wanted Extra attention is wanted. We would love community assistance! label May 5, 2021
@ak-war ak-war assigned ak-war and unassigned jodeev and ak-war May 5, 2021
@ak-war ak-war added CH Community Hero and removed PM PM to review against project priorities. labels May 5, 2021
@ak-war ak-war moved this from Triage - tag + prioritize. to Backlog - Issues without a committed date. in PHP/C Engineering Board May 5, 2021
@ak-war ak-war added bug Something isn't working and removed enhancement New feature or request labels May 5, 2021
@piotrantosik
Copy link
Contributor

Hi, anyone tries setup newrelic with symfony 5? It's works when I set newrelic.framework = "symfony4"?
Right now I use with newrelic.preload_framework_library_detection = false but in this setup I don't see proper transactions.

@b-viguier
Copy link
Contributor Author

@piotrantosik We are using https://github.com/ekino/EkinoNewRelicBundle, it's a little redundant with built-in framework support, but at least transaction names are correctly handled

@Ak-x Ak-x closed this as completed Jan 21, 2022
PHP/C Engineering Board automation moved this from Backlog - Issues without a committed date. to Done Jan 21, 2022
@Ak-x
Copy link
Collaborator

Ak-x commented Jan 21, 2022

Closing this issue per #256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CH Community Hero help wanted Extra attention is wanted. We would love community assistance!
Projects
Development

No branches or pull requests

6 participants