Download the PHP package kolaybi/request-tracer without Composer

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

Request Tracer

Standalone request tracing package for Laravel. Captures outgoing HTTP and SOAP requests, and optionally incoming requests. All traces are stored asynchronously via queued jobs.

Requirements

Installation

Publish the config:

Configuration

If REQUEST_TRACER_MASK_SENSITIVE=true, matching keys in headers and JSON/form payloads are masked before storage.

Middleware

Add RequestTracerMiddleware to your middleware stack. It generates a trace_id for every request and records incoming traces when enabled.

The middleware accepts an optional channel parameter to tag incoming traces by route group:

Context Provider

Implement TraceContextProvider to supply tenant, user, and server information:

Register it in your config:

Usage

HTTP Tracing

Outgoing HTTP requests are traced automatically when outgoing.enabled is true. Use channel() or traceOf() to tag requests:

channel() and traceOf() also accept an enum. Backed enums resolve to their value, pure enums to the case name:

SOAP Tracing

Extend TracingSoapClient for traced SOAP calls:

TracingSoapClient supports lazy initialization — set the WSDL later if needed:

Incoming Tracing

Enable in config:

The middleware records every incoming request with method, path, route, status, timing, headers, and optionally the response body.

Note: response_size is always recorded regardless of the capture_response_body setting. It is read from the Symfony Response content when available, and falls back to the Content-Length header when content is unavailable.

Debugging

Display a chronological waterfall of all traces linked to a trace_id:

The command first prints a summary header:

Followed by a waterfall table of all traces sorted by start time:

This is useful for inspecting the full request flow — incoming request plus all outgoing calls it triggered — in chronological order.

Inspect

Drill into a single trace by its ULID with progressive verbosity:

The command searches both incoming and outgoing tables automatically — no need to specify which.

Data Retention

Table Rotation (recommended)

Rotate trace tables daily — the current table is atomically swapped with a fresh empty one, and the old data moves to a dated archive table (e.g. outgoing_request_traces_20260309). Archives older than retention_days are dropped automatically.

Schedule it to run daily:

Row-level Purge

Alternatively, delete old rows from the current table in chunks:

Or set retention_days in config and schedule it:

Preserving Selected Traces

Some traces are operationally critical (e.g. integrations with external systems for audit purposes) and must survive rotation and retention. The request-tracer:preserve command sweeps rows matching configured glob patterns from the just-rotated archive table into a permanent *_persistent table.

Configure persist patterns per direction:

Wire the command to run immediately after rotation:

Backfill or re-run a specific archive:

The command is idempotent: re-running over the same archive does not duplicate rows (uses INSERT IGNORE / ON CONFLICT DO NOTHING keyed on the ULID PK).

How It Works

Outgoing Traces

Incoming Traces

SOAP Traces

Workers / Queue Jobs

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

Please see License File for more information.


All versions of request-tracer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
laravel/framework Version ^12.0 || ^13.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 kolaybi/request-tracer contains the following files

Loading the files please wait ...