Download the PHP package samuelbednarcik/elastic-apm-agent without Composer

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

Elastic APM PHP agent

Packagist Scrutinizer PHP from Packagist

Unofficial PHP agent for Elastic APM (>=6.5). It is no longer maintained, use this package instead.

This package also ships with the helpers for easy integration with your existing project and libraries like Doctrine, Guzzle etc.

Collectors:

Installation

Usage

Create an agent configuration object

Create an agent instance

Call start method as soon as possible in your code. Request start time is retrieved from the REQUEST_TIME_FLOAT server variable. If you don't provide a request instance, it will be created from the global variables. Start method will also return a transaction instance.

Call stop function at the end of the code. Optionally, if you are using symfony request/response, you can use transaction builder to generate a context for the transaction. By calling the stop method, all spans from collectors will be collected. This function will also return a transaction.

After that, you can call sendAll method which will send all informations to APM server.

Span Collectors

Span collectors are used for extracting informations about events which happens in the external libraries like doctrine or guzzle.

You can register collectors when creating an agent instance

Agent will collect spans from all registered collectors after calling the stop method.

Distributed tracing

Distributed tracing headers are automatically handled by the agent, the only thing you have to do is to send elastic-traceparent-header in request which you want to track.

If you are using Guzzle client, you can use TracingGuzzleMiddleware which will inject header for you.

License

MIT


All versions of elastic-apm-agent with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ^6.3
symfony/http-foundation Version ^4.1
symfony/serializer Version ^4.1
symfony/property-info Version ^4.1
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 samuelbednarcik/elastic-apm-agent contains the following files

Loading the files please wait ....