Download the PHP package vantt/opentracing-jaeger-php without Composer

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

Build Status Minimum PHP Version License Coverage Status

jaeger-php

Install

Install via composer.

Init Jaeger-php

128bit

Extracting span context from request header

Injecting span context into request header

Usage

Using SpanBuilder

This library extends the original api to add a new method buildSpan(operationName):SpanBuilderInterface. When consuming this library one really only need to worry about the buildSpan(operationName) on the $tracer instance: Tracer::buildSpan(operationName)

With SpanBuilder, we can leverage the power of editor to do auto code completion for us with following APIs:

Here are code snippets demonstrating some important use cases:

Creating a Span given an existing Request

To start a new Span, you can use the startSpan method.

Starting a new trace by creating a "root span"

It's always possible to create a "root" Span with no parent or other causal reference.

Active Spans and Scope Manager

For most use cases, it is recommended that you use the Tracer::startActiveSpan function for creating new spans.

An example of a linear, two level deep span tree using active spans looks like this in PHP code:

When using the Tracer::startActiveSpan function the underlying tracer uses an abstraction called scope manager to keep track of the currently active span.

Starting an active span will always use the currently active span as a parent. If no parent is available, then the newly created span is considered to be the root span of the trace.

Unless you are using asynchronous code that tracks multiple spans at the same time, such as when using cURL Multi Exec or MySQLi Polling it is recommended that you use Tracer::startActiveSpan everywhere in your application.

The currently active span gets automatically finished when you call $scope->close() as you can see in the previous examples.

If you don't want a span to automatically close when $scope->close() is called then you must specify 'finish_span_on_close'=> false, in the $options argument of startActiveSpan.

Creating a child span assigning parent manually

Creating a child span using automatic active span management

Every new span will take the active span as parent and it will take its spot.

Serializing to the wire

Deserializing from the wire

When using http header for context propagation you can use either the Request or the $_SERVER variable:

Start Span

Distributed context propagation

Inject into Superglobals

Tags and Log

Close Tracer

Zipkin B3 Propagation

no support for Distributed context propagation

Finish span and flush Tracer

Features

Reference

OpenTracing

Jaeger


All versions of opentracing-jaeger-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1||^8.0
packaged/thrift Version 0.10.0
vantt/opentracing-php Version ^1.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 vantt/opentracing-jaeger-php contains the following files

Loading the files please wait ....