Download the PHP package jonahgeorge/jaeger-client-php without Composer

On this page you can find all versions of the php package jonahgeorge/jaeger-client-php. 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 jaeger-client-php

Build Status PHP version

Jaeger Bindings for PHP OpenTracing API

This is a client-side library that can be used to instrument PHP apps for distributed trace collection, and to send those traces to Jaeger. See the OpenTracing PHP API for additional detail.

Contributing and Developing

Please see CONTRIBUTING.md.

Installation

Jaeger client can be installed via Composer:

Getting Started

Samplers

List of supported samplers, for more info about samplers, please read Jaeger Sampling guide.

Const sampler

This sampler either samples everything, or nothing.

Configuration

Probabilistic sampler

This sampler samples request by given rate.

Configuration

Rate limiting sampler

Samples maximum specified number of traces (requests) per second.

Requirements
Configuration

Dispatch mode

The library supports 3 ways of sending data to Jaeger Agent:

  1. Zipkin.thrift over Compact protocol (socket - UDP) - default
  2. Jaeger.thrift over Binary protocol (socket - UDP)
  3. Jaeger.thrift over Binary protocol (HTTP)

If you want to enable "Jaeger.thrift over Binary protocol" one or other, than you need to set dispatch_mode config option or JAEGER_DISPATCH_MODE env variable.

Allowed values for dispatch_mode are:

There are 3 constants available, so it is better to use them:

A possible config with custom dispatch_mode can look like this:

The full example you can see at examples directory.

By default, for each dispatch_mode there is default reporting_port config value. Table with default values you can see below:

dispatch_mode default reporting_port
ZIPKIN_OVER_COMPACT_UDP 5775
JAEGER_OVER_BINARY_UDP 6832
JAEGER_OVER_BINARY_HTTP 14268

IPv6

In case you need IPv6 support you need to set ip_version Config variable. By default, IPv4 is used. There is an alias Config::IP_VERSION which you can use as an alternative to raw ip_version.

Example:

or

Testing

Tests are located in the tests directory. See tests/README.md.

Roadmap

License

MIT License.


All versions of jaeger-client-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0 || ^8.1
ext-sockets Version *
opentracing/opentracing Version ^1.0
packaged/thrift Version ^0.13
psr/cache Version ^1.0 || ^2.0 || ^3.0
psr/log Version ^1.0 || ^2.0 || ^3.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 jonahgeorge/jaeger-client-php contains the following files

Loading the files please wait ....