Download the PHP package icovn/laravel-zipkin without Composer

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

Laravel Zipkin

Latest Stable Version Total Downloads License

A library wants to help the use Openzipkin for Laravel.

Table of contents

Laravel version Compatibility

Laravel Package
5.x not tested
>= 6.x.x 1.0.x

Requirements

No requirements are necessary.

Installation

  1. Installation using composer:

  2. And add the service provider in config/app.php:

  3. You may also register an alias for the ZipkinService by adding the following to the alias array in config/app.php:

Configuration

Run the command below to publish the package config file config/zipkin.php:

in your .env file define these parameters and set up your configuration:

Automatic API tracing

The library offer an automatic tracing of request, in particular about your API. In order to use this automatic tracing you have:

  1. Insert the middleware in your app/Kernel.php where do you want automatic tracing. For example you can use in api block:

  2. Each controller of Api must extends ZipkinBaseController (check BaseController):

Usage

Dependency

You can easly access to ZipkinService by dependency injection. In your Controller you can access in this way:

BaseController

If you want to automatize child span between controllers and methods, you can use ZipkinBaseController and foreach method called in Controller he create automatically a span for the current rootSpan instance. note: ZipkinBaseController doen't create rootSpan, so you have to create before methods are called. For example in middleware.

In this way you don't need to access to $zipkinService in __construct, but if you need to override it you have to call parent constructor:

note: in your MyAwesomeController now you can access to ZipkinService with public variable of ZipkinBaseController :

Create trace and rootSpan

In order to create a rootSpan you can use this code

Child span

To create a child span:

Contact

Open an issue on GitHub if you have any problems or suggestions.

License

The contents of this repository is released under the MIT license.


All versions of laravel-zipkin with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
openzipkin/zipkin Version ^1.3.6
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 icovn/laravel-zipkin contains the following files

Loading the files please wait ....