ayewo / highlight-php-sdk-test
Highlight's OpenTelemetry SDK for PHP.
Requires
- php: ^8.2
- open-telemetry/api: @stable
- open-telemetry/context: @stable
- open-telemetry/exporter-otlp: @stable
- open-telemetry/gen-otlp-protobuf: @stable
- open-telemetry/sdk: @stable
- open-telemetry/sem-conv: @stable
Requires (Dev)
- assertwell/phpunit-global-state: ^0.2.2
- composer/xdebug-handler: ^2.0
- dg/bypass-finals: ^1.4
- friendsofphp/php-cs-fixer: ^3.4
- guzzlehttp/guzzle: ^7.4
- guzzlehttp/psr7: ^2.1
- mikey179/vfsstream: ^1.6.11
- mockery/mockery: ^1.5.1
- monolog/monolog: ^2.3
- nikic/php-parser: ^4.15.4
- nyholm/psr7: ^1.4
- open-telemetry/dev-tools: dev-main
- phan/phan: ^5.4
- php-http/mock-client: ^1.5
- phpbench/phpbench: ^1.2
- phpdocumentor/reflection-docblock: ^5.3
- phpmetrics/phpmetrics: ^2.8
- phpspec/prophecy: ^1.17.0
- phpspec/prophecy-phpunit: 2.0.1
- phpstan/phpstan: ^1.10.13
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^9.6
- psalm/plugin-mockery: ^0.11
- psalm/plugin-phpunit: ^0.18.4
- psalm/psalm: ^4.30
- qossmic/deptrac-shim: ^0.24 || ^1
- rector/rector: >=0.15.20
- symfony/http-client: ^5.2
- symfony/yaml: ^6 || ^5
This package is auto-updated.
Last update: 2024-11-17 12:07:06 UTC
README
Docs - Community (Support & Feedback) - Feature request - Bug report
highlight.io: The open-source, fullstack monitoring platform.
highlight.io is a monitoring tool for the next generation of developers (like you!). Unlike the age-old, outdated tools out there, we aim to build a cohesive, modern and fully-featured monitoring solution, something we wished WE had. And it's all open source :)
At a high level, highlight.io's feature set is:
We strive to make highlight.io as easy to install as a few lines of code in any environment.
Read more about our features, values and mission below, and get started at https://highlight.io today!
Highlight PHP SDK
Below are some examples demonstrating usage of the PHP SDK:
use Highlight\SDK\Common\HighlightOptions; use Highlight\SDK\Highlight; $projectId = '1jdkeo52'; // Use only a projectId to bootstrap Highlight if (!Highlight::isInitialized()) { Highlight::init($projectId); } // Use a HighlightOptions instance to bootstrap Highlight $options = HighlightOptions::builder($projectId)->build(); if (!Highlight::isInitialized()) { Highlight::initWithOptions($options); } // Use a HighlightOptions instance prepped with a serviceName to bootstrap Highlight $options = HighlightOptions::builder($projectId)->serviceName('test-service-01')->build(); if (!Highlight::isInitialized()) { Highlight::initWithOptions($options); }