Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.12 KB

File metadata and controls

51 lines (42 loc) · 1.12 KB

Metadata

Metadata concerning the other objects in the stream.

Minimum parameters

<?php

use ZoiloMora\ElasticAPM\Events\Common\Service\Language;
use ZoiloMora\ElasticAPM\Events\Common\Service\Runtime;
use ZoiloMora\ElasticAPM\Events\Metadata\Metadata;
use ZoiloMora\ElasticAPM\Events\Metadata\Service;

$metadata = new Metadata(
    new Service(
        'example-project',
        Language::discover(),
        Runtime::discover()
    )
);

All parameters

<?php

use ZoiloMora\ElasticAPM\Events\Common\Process;
use ZoiloMora\ElasticAPM\Events\Common\Service\Framework;
use ZoiloMora\ElasticAPM\Events\Common\Service\Language;
use ZoiloMora\ElasticAPM\Events\Common\Service\Runtime;
use ZoiloMora\ElasticAPM\Events\Common\System;
use ZoiloMora\ElasticAPM\Events\Metadata\Metadata;
use ZoiloMora\ElasticAPM\Events\Metadata\Service;

$metadata = new Metadata(
    new Service(
        'example-project',
        Language::discover(),
        Runtime::discover(),
        new Framework(
            'Symfony',
            '4.4'
        ),
        'prod'
    ),
    Process::discover(),
    System::discover()
);