Download the PHP package lucagiardina/lara-zipkin without Composer

On this page you can find all versions of the php package lucagiardina/lara-zipkin. 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 lara-zipkin

Lara-Zipkin

Wrapper for Laravel and Lumen using php-zipking

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

Getting Started

In .env you should set

Lumen Setup

edit app.php

if you want to use the middleware to auto track requests add to $app->middleware([]);

Laravel Setup

edit app.php

if you want to use the middleware to auto track requests edit Kernel.php

LaraZipkinTerminateMiddleware send spans to Zipkin after the response is sent (so it doesn't affect performances)

the Middleware tracks the requests trying to create low cardinality span (ex /route/{param}/and/{id})

I suggest you to give names to the routes so you will never have a problem! https://laravel.com/docs/5.8/routing#named-routes

N.B. if you are going to use the Middleware to create the main span and want to track the other middlewares using the LaraZipkinClient object I suggest you to add the middleware that creates the main span into the protected $middlewarePriority array: https://laravel.com/docs/5.7/middleware#sorting-middleware

Using the ZipkinClient object

The LaraZipkinServiceProvider creates into the app container an object:

Methods

getNextSpan

This method allows you to create a main span. By default the Middleware creates a span named with the route name or with the route pattern (ex. /your/route/66) or if there is no route name nor route pattern it will use the request url.

Use this method only if you want to create a new main span and change the context or if you are not going to use the Middleware.

track

This method will create a child span into the main span named $spanName of the kind $kind if $spanName doesn't exists already. If $method is set it adds an annotation into the childspan: "$method . '_starts'"

finishTrack

This method will finish the span named $spanName. If $method is set it adds an annotation into the childspan: $method . '_starts'

trackCall

This method will create a child span into the span named $spanName of the kind $kind. The name for the new child span will be $callName and it will add a note $callName . '_starts' to the child span If $method is set it adds an annotation into the childspan: "$method . '_starts'"

trackEndCall

This method will finish the span named $callName into $spanName.

tagBy

This method allows to add a tag to the main span in order to search by tag

N.B.

It's possible to use the core object itself as detailed at https://github.com/openzipkin/zipkin-php using the method

The Middleware add Tags in the main span for:

Examples

Tracking another Middleware

Tracking third party

Send propagation headers via Guzzle request


All versions of lara-zipkin with dependencies

PHP Build Version
Package Version
Requires openzipkin/zipkin Version ~1.0
php Version ^7.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 lucagiardina/lara-zipkin contains the following files

Loading the files please wait ....