Download the PHP package umbrellio/jaravel without Composer

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

Jaravel

Github Status Coverage Status Scrutinizer Code Quality

Library that allows easy integrate your Laravel application with Jaeger (OpenTracing).

Installation

Installation can be done with composer

Usage

Jaravel is able to trace your incoming http requests, console command, your guzzle requests to other services and event your queued jobs.

You can check your configuration in jaravel.php. All configuration is described in comment blocks.

You can configure span name or tags for every type of span:

You can use any callable or fully qualified class name, that points to class having __invoke method (it will be initialized via Service Container, so you can inject anything that you want in constructor). Its preferred way, if you are usingconfig:cache` Artisan command, because closures can't be serialized. Params passed to callable depends on what type of span (http, console, etc).

Tracing incoming http requests

To enable tracing incoming http requests, you need to add middleware HttpTracingMiddleware to specific routes or globally, for example.

Requests can be filtered via 'allow_request' or 'deny_request' callables. If 'allow_request' is defined, http request will be traced only if this callable will return true. After 'allow_request' Jaravel checks 'deny_request' callable, and doesn`t make a trace, if it returns false. If you dont want to filter any requests, you can skip this settings.

For example, if you want to trace only requests having '/api' in the path:

If 'trace_id_header' is configured, header with trace id will be added to response. field.

Tracing console commands

Enabled by default.

It`s able to filter commands via 'filter_commands', that will not be traced:

Tracing jobs

To start tracing your jobs and even relate it with parent span, you need just add JobTracingMiddleware to jobs:

It recommends to use InteractsWithQueue trait, because with this trait you can use methods of Job instance while tagging span for job:

Tracing outgoing http requests with Guzzle

To start tracing your Guzzle requests, you need just add middleware to your Guzzle client:

To add tracing to all your requests you can bind above client to GuzzleHttp\Client in your Service Provider.

Making your own spans

If you need to make your own span, you can follow next example:

If you need to retrieve current trace id, you can use: Umbrellio\Jaravel\Services\Span\ActiveSpanTraceIdRetriever::retrieve()

License

Released under MIT License.

Authors

Created by Vitaliy Lazeev.

Contributing

Supported by Umbrellio


All versions of jaravel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
laravel/framework Version ^7.0|^8.0|^9.0|^10.0
guzzlehttp/guzzle Version ^6.0|^7.0
spatie/macroable Version ^1.0
php-http/guzzle7-adapter Version ^1.0
open-telemetry/opentelemetry Version ^0.0.15
ext-json Version *
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 umbrellio/jaravel contains the following files

Loading the files please wait ....