Download the PHP package wizaplace/elastic-apm-wrapper without Composer

On this page you can find all versions of the php package wizaplace/elastic-apm-wrapper. 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-wrapper

CircleCI License Version Maintenance Ask Me Anything !

Elastic APM Wrapper

PHP Wrapper to send Logs to Elastic APM

Installation

The recommended way to install the wrapper is through Composer.

Run the following composer command:

Configuration

Communication with Elastic APM is managed by elastic-apm-php-agent (\PhilKra\Agent).

In order to instantiate the service using this agent, you have to provide several parameters :

Usage

Transaction

Transactions are the highest level of work you’re measuring within a service, like a request to your server. The main idea is that you monitor one transaction at a time: your PHP script being executed.

To start a transaction, you need to use the method within AgentService.php. It should be stopped (using ) at the very end of the application you're monitoring. Ideally, you wil start the transaction at the beginning of each entry point of your application and stop it at the end of each.

Spans

Spans can be seen as 'sub-transactions', meaning they are used to help to watch parts of your application.

A new span can be started as one or several spans are already started. It is important to stop manually all the spans you started otherwise they will be closed automatically meaning you won't really get accurate data.

Within one transaction there can be 0-* spans captured.

Apm Handler

A custom Monolog handler (ApmHandler.php) has been included to this package, enabling you to send data to the APM automatically when Monolog is called. This configuration is optional.

Licence

This library is distributed under the terms of the MIT licence.


All versions of elastic-apm-wrapper with dependencies

PHP Build Version
Package Version
Requires monolog/monolog Version ~1.0 || ~2.0
wizaplace/elastic-apm-php-agent Version ^1.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 wizaplace/elastic-apm-wrapper contains the following files

Loading the files please wait ....