{"id":20540549,"url":"https://github.com/utopia-php/telemetry","last_synced_at":"2025-04-14T08:38:25.528Z","repository":{"id":262615968,"uuid":"886745114","full_name":"utopia-php/telemetry","owner":"utopia-php","description":"Lite \u0026 fast micro PHP telemetry library that is **easy to use**.","archived":false,"fork":false,"pushed_at":"2025-03-17T11:58:09.000Z","size":43,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-27T22:11:11.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utopia-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-11T14:25:48.000Z","updated_at":"2025-03-17T11:57:57.000Z","dependencies_parsed_at":"2024-11-13T11:47:08.761Z","dependency_job_id":null,"html_url":"https://github.com/utopia-php/telemetry","commit_stats":null,"previous_names":["utopia-php/telemetry"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Ftelemetry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Ftelemetry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Ftelemetry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Ftelemetry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utopia-php","download_url":"https://codeload.github.com/utopia-php/telemetry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248847426,"owners_count":21171181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T01:16:10.563Z","updated_at":"2025-04-14T08:38:25.501Z","avatar_url":"https://github.com/utopia-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utopia Telemetry\n\n![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/telemetry.svg)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)\n\nUtopia 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).\n\nAlthough 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.\n\n## Getting Started\n\nInstall using composer:\n\n```bash\ncomposer require utopia-php/telemetry\n```\n\nInit in your application:\n\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n// Create a Telemetry instance using OpenTelemetry adapter.\nuse Utopia\\Telemetry\\Adapter\\OpenTelemetry;\n\n$telemetry = new OpenTelemetry('http://localhost:4138', 'namespace', 'app', 'unique-instance-name');\n$counter = $telemetry-\u003ecreateUpDownCounter('http.server.active_requests', '{request}');\n\n$counter-\u003eadd(1);\n$counter-\u003eadd(2);\n\n// Periodically collect metrics and send them to the configured OpenTelemetry endpoint.\n$telemetry-\u003ecollect();\n\n// Example using Swoole\n\\Swoole\\Timer::tick(60_000, fn () =\u003e $telemetry-\u003ecollect());\n```\n\n## System Requirements\n\nUtopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.\n\n## Copyright and license\n\nThe MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Ftelemetry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futopia-php%2Ftelemetry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Ftelemetry/lists"}