https://github.com/utopia-php/telemetry
Lite & fast micro PHP telemetry library that is **easy to use**.
https://github.com/utopia-php/telemetry
Last synced: about 2 months ago
JSON representation
Lite & fast micro PHP telemetry library that is **easy to use**.
- Host: GitHub
- URL: https://github.com/utopia-php/telemetry
- Owner: utopia-php
- License: mit
- Created: 2024-11-11T14:25:48.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T11:58:09.000Z (3 months ago)
- Last Synced: 2025-03-27T22:11:11.059Z (2 months ago)
- Language: PHP
- Size: 42 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utopia Telemetry

[](https://appwrite.io/discord)Utopia Telemetry is a powerful Telemtry library. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).
Although this library is part of the [Utopia System](https://github.com/utopia-php) project it is dependency free and can be used as standalone with any other PHP project or framework.
## Getting Started
Install using composer:
```bash
composer require utopia-php/telemetry
```Init in your application:
```php
createUpDownCounter('http.server.active_requests', '{request}');$counter->add(1);
$counter->add(2);// Periodically collect metrics and send them to the configured OpenTelemetry endpoint.
$telemetry->collect();// Example using Swoole
\Swoole\Timer::tick(60_000, fn () => $telemetry->collect());
```## System Requirements
Utopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.
## Copyright and license
The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)