Download the PHP package chq81/elastic-apm-bundle without Composer

On this page you can find all versions of the php package chq81/elastic-apm-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package elastic-apm-bundle

Symfony Elastic APM Bundle

This package is a continuation of the excellent work done by goksagun at goksagun/elastic-apm-bundle.

Installation

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

Step 3: Add the Bundle config file

Then, add the bundle configuration yml file elastic_apm.yml into config/packages directory:

Configuration

The following configurations options are provided:

Option Default Example Value(s) Mandatory Description
enabled true true, false yes Activating the APM Agent
serviceName "Symfony APM Service" yes The name of your service
serverUrl null "http://localhost:8200" yes The URL for your APM service. The URL must be fully qualified, including the protocol and port.
secretToken null "SOME_TOKEN" no The secret token required to send data to your APM service
serviceVersion null 1.0 no The version of your deployed service
frameworkName null "Symfony" no The name of the application framework
frameworkVersion null "5.1.7", !php/const App\Kernel::VERSION no The version of the application framework
environment null "dev", '%kernel.environment%' no The environment where your service is running
hostname null "local-hostname" no The OS hostname on which the agent is running
env [] ['DOCUMENT_ROOT', 'REMOTE_ADDR', 'REMOTE_USER'] no $_SERVER vars to send to the APM Server. Keys are case sensitive
cookies [] ['my-cookie'] no Cookies to send to the APM Server. Keys are case sensitive
httpClient null "Buzz\Browser" no The service reference to the HTTP client to use for APM requests. It needs to implement the Psr\Http\Client\ClientInterface. When left empty, the Http\Discovery\HttpClientDiscovery is used to find any installed http clients.
timeout 10 10 no The timeout for the HTTP client
logger null "monolog.logger" no The service reference to the Logger to use in all APM requests. It needs to implement the Psr\Log\LoggerInterface. When left empty, the Psr\Log\NullLogger is used.
logLevel INFO DEBUG no The log level of the logger
stackTraceLimit 0 10 no The depth of a transaction stack trace. The default (0) is unlimited depth.
transactionSampleRate 1.0 1.0 no Transactions will be sampled at the given rate (1.0 being 100%). Sampling a transaction means that the context and child events will be included in the data sent to APM. Unsampled transactions are still reported to APM, including the overall transaction time, but will have no details. The default is to sample all (1.0) transactions.

Furthermore, it is possible to de-/activate the data capturing for transactions and errors. Per default, both are enabled. For errors, status codes and exceptions can be excluded. See the following example:

Contributing

Contributions are welcome. Read the contributing guide to get started.

Contributors

A big thank you goes out to every contributor of this repo, special thanks goes out to:


All versions of elastic-apm-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0
nipwaayoni/elastic-apm-php-agent Version ^7.5
symfony/config Version ^4.4 || ^5.4 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.0
symfony/security-bundle Version ^4.4 || ^5.4 || ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chq81/elastic-apm-bundle contains the following files

Loading the files please wait ....