Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 510 Bytes

configuration.md

File metadata and controls

23 lines (18 loc) · 510 Bytes

Configuration

To configure the agent it is necessary to build the CoreConfiguration with an associative array.

<?php

use ZoiloMora\ElasticAPM\Configuration\CoreConfiguration;

$configuration = CoreConfiguration::create([
    // Required
    'appName' => 'service-name',

    // Optionals
    'active' => true,
    'appVersion' => '1.0',
    'frameworkName' => 'Symfony',
    'frameworkVersion' => '4.4',
    'environment' => 'prod',
    'stacktraceLimit' => 4,
    'metricSet' => true,
]);