Download the PHP package jcchavezs/zipkin-opentracing without Composer
On this page you can find all versions of the php package jcchavezs/zipkin-opentracing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jcchavezs/zipkin-opentracing
More information about jcchavezs/zipkin-opentracing
Files in jcchavezs/zipkin-opentracing
Package zipkin-opentracing
Short Description A Zipkin bridge with OpenTracing
License MIT
Informations about the package zipkin-opentracing
Zipkin PHP OpenTracing
Zipkin implementation for OpenTracingTracer in PHP.
This library allows OpenTracing API consumers to use Zipkin as their tracing backend. For details on how to work with spans and traces we suggest looking at the documentation and README from the OpenTracing API.
Getting started
Required Reading
In order to understand OpenTracing API, one must first be familiar with the OpenTracing project and terminology more generally.
To understand how Zipkin works, you can look at Zipkin Architecture and Zipkin PHP documentation.
Installation
Usage
Firstly, we need to setup a tracer:
Creating Spans
- Starting a root span
- Starting a span for a given request
- Active span and scope manager
- Using span options
Propagation of context
Flushing Spans to the agent
PHP as a request scoped language has no simple means to pass the collected spans data to a background process without
blocking the main request thread/process. It is mandatory to execute the Tracer::flush()
after the response is served
to the client by using register_shutdown_function
.
Contribution
Run tests
Fix lint
All versions of zipkin-opentracing with dependencies
opentracing/opentracing Version ^1.0.1
openzipkin/zipkin Version ^3.0.0