Download the PHP package cboxdk/statamic-telemetry without Composer

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

Statamic Telemetry

Statamic overlay for cboxdk/laravel-telemetry: content-aware trace names, Stache and static-cache instrumentation, site context and user attribution — as a proper Statamic addon.

laravel-telemetry already traces requests, queries, queue jobs, cache and more. This addon teaches those traces Statamic's vocabulary:

Installation

Requires PHP 8.3+, Statamic 6 and cboxdk/laravel-telemetry ^2.4. Everything is on by default except Antlers view/tag spans and the gauges. Publish the config to change toggles:

What you get

Spans & attributes

Attribute Where Values
statamic.type root span entry, term, taxonomy
http.route root span + request metric logical content route: entry:blog.article, term:topics, taxonomy:topics
http.route.template root span (when overridden) raw Laravel template: /{segments?}
statamic.entry.id / statamic.term.id root span id
statamic.collection / statamic.blueprint / statamic.taxonomy root span handles
statamic.site root span + all spans (context) site handle
statamic.static_cache root span hit, miss, write
user.roles / user.groups root span sorted, comma-joined handles
user.super root span true (only when super)
cache.key.group cache spans (core) stache.index, stache.item, …
statamic.blink.hits / statamic.blink.misses root span (tallies) per-request Blink memoization effectiveness
view.path / view.engine view.render detail spans (opt-in) relative path, antlers
antlers.tag / antlers.method antlers:{tag} detail spans (opt-in) bounded tag name (collection, partial) + unbounded method (blog, components/hero)

Metrics

Metric Type Labels
statamic.static_cache.operations counter operation: hit, miss, write, invalidate, flush
statamic.stache.warms / statamic.stache.clears counter —
statamic.stache.warm_duration histogram (ms) —
statamic.glide.generations counter preset (ad-hoc params → custom)
statamic.forms.submissions counter form
statamic.content.changes counter type, action
statamic.search.index_updates counter index
statamic.auth.events counter event: impersonation, 2FA, registrations, password changes
statamic.glide.cache_clears counter scope: all, asset
statamic.entries.count gauge (opt-in) collection
statamic.assets.count gauge (opt-in) container
statamic.users.count gauge (opt-in) —

Core cache counters additionally carry the key_group label from the classifier.

Grafana dashboard

The addon bundles a Statamic dashboard for the Grafana suite that ships with laravel-telemetry (telemetry:dashboards): static cache hit ratio and operations, Stache traffic by key group and warm duration, content changes, form submissions, Glide generations, the opt-in inventory gauges, and Tempo panels for content traces and slow uncached pages.

It carries the same telemetry tag as the core suite, so it appears as a tab alongside Overview, Requests, Jobs, etc. Panels are regenerated with php resources/grafana/generate.php.

The addon adds a Telemetry item to the Control Panel nav pointing at your telemetry UI — the in-app cboxdk/laravel-telemetry-ui dashboard automatically when installed (it has Statamic pages), or set STATAMIC_TELEMETRY_UI_URL for Grafana / a remote UI.

Browser tracing in Antlers

laravel-telemetry's browser RUM (@cboxdk/telemetry-browser) in Antlers templates — drop it in your layout <head>:

Both are empty when the span ingest (TELEMETRY_INGEST_SPANS) or the trace is off. Static caching is handled: the per-request traceparent and data-session are stripped from cached pages by a Statamic replacer (like the CSRF one), so a cache hit never replays one visitor's server trace or analytics session to everyone — the RUM self-roots instead. Full-measure (file) hits are served without PHP, so they get a self-rooted browser trace with no server span; the strip happens once when the file is compiled. See docs/browser-tracing.

Composing with your own hooks

laravel-telemetry's resolver hooks are single-slot — the last registration wins. This addon registers during boot, so if your app registers its own resolver it replaces the Statamic one. Delegate to the addon's public methods to compose:

Design notes

More detail — the full metric/attribute/config catalog and the rationale behind each design decision — lives in docs/.

UI

None yet — the addon is structured as a regular Statamic addon (AddonServiceProvider), so CP nav, widgets and routes can be added later without restructuring.

Testing

The test suite uses Statamic's AddonTestCase and Telemetry::fake(). Note for addon/package authors: after swapping in the fake, re-register the hooks (Hooks::register($fake)) — the boot-time registrations landed on the manager the fake replaces. See tests/TestCase.php::fakeTelemetry().


All versions of statamic-telemetry with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4|^8.5
cboxdk/laravel-telemetry Version ^3.0
statamic/cms Version ^6.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 cboxdk/statamic-telemetry contains the following files

Loading the files please wait ...