ayewo/highlight-php-sdk-test

Highlight's OpenTelemetry SDK for PHP.


README

docs-thumbnail

PRs Welcome Join Discord Community GitHub commit activity GitHub closed issues

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);
    }