Download the PHP package kinetis/telemetry without Composer

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

kinetis/telemetry
OpenTelemetry tracing for Kinetis

Packagist Version Packagist Downloads PHP Version License CI


Part of Kinetis, a non-blocking PHP framework for API-first applications, developed in the kinetis-dev/kinetis monorepo.

A span per request, per SQL query, per queue job, and per outgoing HTTP call, exported over OTLP to any tracing backend. Each export request goes through kinetis/revolt-http-client's Fiber-suspending transport as one wire attempt under a bounded budget — ten seconds to reach the collector, ten more to exchange the batch — so a collector that never answers cannot hold the exporting request open indefinitely.

The distinctive trace this produces: spans that overlap in time. A request running two queries and an HTTP call through concurrently() shows all three side by side inside the request span — what non-blocking I/O actually did for that request, visible.

Set one environment variable and requests start tracing:

Provides

Installing this package auto-registers, via extra.kinetis:

The decorators below are explicit opt-ins wired in your own bootstrap.php, for the boundaries the framework reports nothing from.

Scope ownership across Fibers

An active span's scope belongs to the Fiber that started it — OpenTelemetry's default Fiber-bound context storage stays in place — so two overlapping concurrently() tasks each keep their own stack and neither can detach the other's span. Parentage across a Fiber boundary is passed rather than read: the batch hook's token reaches each task hook and parents the task span to its batch, and a span starting on a Fiber that carries no context (a request span, a worker's job span) names its parent explicitly — the propagated traceparent, or the trace root.

Decorators

What never reaches a span

A trace is exported to a third-party backend, retained there, and readable by everyone with access to it — a wider audience than the database, cache, or upstream service an operation's input was addressed to. So a span here describes an operation and never the data it carried. Every decorator and hook routes an operation's inputs through one internal policy point, and there is no setting that turns it off.

A SQL statement and its parameters, a cache key and its value, a URL's userinfo/path/query/fragment, an incoming request's path, a search index name or document id, a session id and its payload, and a failure's message and stack trace all stay behind. What travels in their place is an unkeyed 128-bit SHA-256 fingerprint — enough for a backend to group two spans over the same value, never the value — plus the operation's own name drawn from a closed vocabulary. A failing operation's exception propagates unchanged, so an application that wants the message logs it where its own redaction policy applies, and TraceAwareLogger puts the trace id on that log line.

The full table of what is dropped and what replaces it, and what each vocabulary falls back to, is stated once at kinetis.dev/docs/telemetry.html.

Configuration

Key Default Purpose
OTEL_EXPORTER_OTLP_ENDPOINT — Collector's OTLP/HTTP base URL. Unset = tracing off (no-op provider).
OTEL_SERVICE_NAME kinetis The service.name resource attribute.
OTEL_EXPORTER_OTLP_HEADERS — Export headers, key=value,key2=value2 — a hosted backend's auth.
OTEL_TRACES_SAMPLER parentbased_always_on Standard sampler names; traceidratio + OTEL_TRACES_SAMPLER_ARG for a rate.
OTEL_TRACES_SAMPLER_ARG 1.0 Ratio for the traceidratio samplers, 0–1.

Export never follows a redirect and never retries. A redirect, an error response, or a spent budget is one logged export failure, and the batch is dropped rather than resent: the collector may already hold it — see kinetis.dev/docs/telemetry.html.

Installation

Requires PHP 8.4+, kinetis/framework, and kinetis/revolt-http-client. Full documentation: kinetis.dev/docs/telemetry.html.

License

MIT — see LICENSE.


All versions of telemetry with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4 <8.6
kinetis/framework Version ^1.29.1
kinetis/revolt-http-client Version ^1.9.2
open-telemetry/sdk Version ^1.15.0
open-telemetry/exporter-otlp Version ^1.4.0
symfony/http-client Version ^8.1.11
symfony/http-client-contracts Version ^3.7.1
nyholm/psr7 Version ^1.8.2
psr/log Version ^3.0.2
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 kinetis/telemetry contains the following files

Loading the files please wait ...