EkinoNewRelicBundle | Add NewRelic support to Symfony | Web Framework library

 by   ekino PHP Version: 2.4.0 License: MIT

kandi X-RAY | EkinoNewRelicBundle Summary

kandi X-RAY | EkinoNewRelicBundle Summary

EkinoNewRelicBundle is a PHP library typically used in Server, Web Framework, Symfony applications. EkinoNewRelicBundle has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Add NewRelic support to Symfony
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              EkinoNewRelicBundle has a low active ecosystem.
              It has 279 star(s) with 88 fork(s). There are 24 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 10 open issues and 78 have been closed. On average issues are closed in 250 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of EkinoNewRelicBundle is 2.4.0

            kandi-Quality Quality

              EkinoNewRelicBundle has 0 bugs and 0 code smells.

            kandi-Security Security

              EkinoNewRelicBundle has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              EkinoNewRelicBundle code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              EkinoNewRelicBundle is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              EkinoNewRelicBundle releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              EkinoNewRelicBundle saves you 690 person hours of effort in developing the same functionality from scratch.
              It has 1602 lines of code, 183 functions and 30 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed EkinoNewRelicBundle and discovered the below as its top functions. This is intended to give you an instant insight into EkinoNewRelicBundle implemented functionality, and help decide if they suit your requirements.
            • Get the configuration tree builder .
            • Loads configuration .
            • On kernel response event .
            • Perform the request .
            • Process command event .
            • Register monolog services .
            • Send notice error .
            • Set the ignore transaction .
            • Registers deprecation .
            • Prepare interactor .
            Get all kandi verified functions for this library.

            EkinoNewRelicBundle Key Features

            No Key Features are available at this moment for EkinoNewRelicBundle.

            EkinoNewRelicBundle Examples and Code Snippets

            No Code Snippets are available at this moment for EkinoNewRelicBundle.

            Community Discussions

            Trending Discussions on EkinoNewRelicBundle

            QUESTION

            Changing priority of a subscriber coming from a vendor's bundle
            Asked 2021-Oct-24 at 02:13

            To set some context, I'm working on a Symfony 4.4 API, which use a vendor named EkinoNewRelicBundle to communicate data to the New Relic API. This vendor uses a subscriber named RequestListener to subscribe on the kernel.request event of Symonfy to define data to send to the New Relic API.

            I've got an issue in a specific case, when there is an authentication issue resulting in a 498, another subscriber from the SecurityBundle throw an exception, stopping the request processing. Unfortunately, a method of the EkinoNewRelicBundle subscriber, named setTransactionName, has a lower priority than the SecurityBundle subscriber, resulting in data not properly set by Ekino as the process is stop.

            By editing by hand the vendor, I found that a priority 10 on the setTransactionName would be enough to be executed before the SecurityBundle.

            I'm looking for a way to edit the priority of the RequestListener priority at runtime. So far, I've tried to :

            • override the configuration, but as the priority is defined in a public static method from a class and seems to be loaded directly in the EventDispatcher, therefore it's no configuration to override ;
            • use a compiler pass to manipulate the definition, but same as above, there is no definition to edit as it seems to be loaded directly in the EventDispatcher ;
            • extend the Ekino subscriber to edit the priority, disabling the listner from the Ekino's configuration, but this results in configuration issue of my newly define subscriber as it can't be autowired.

            Isn't there an easy way to change a priority of a subscribed event in a vendor's subscriber?

            The maintener did talk about this seven years ago, when the configuration was still accessible with the compiler pass in this EkinoNewRelicBundle issue.

            ...

            ANSWER

            Answered 2021-Oct-24 at 02:02

            As per the How to Override any Part of a Bundle Symfony Documentation.

            If you want to modify the services created by a bundle, you can use service decoration.

            As the Ekino\NewRelicBundle\Listener\RequestListener is a service that is registered in the configs and autoconfigured by Symfony, you can create a decorator and add a custom getSubscribedEvents() method to override the priorities.

            Create the Decorator

            Source https://stackoverflow.com/questions/69679703

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install EkinoNewRelicBundle

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ekino/EkinoNewRelicBundle.git

          • CLI

            gh repo clone ekino/EkinoNewRelicBundle

          • sshUrl

            git@github.com:ekino/EkinoNewRelicBundle.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link