divlooper / elastic-apm-bundle
Elastic APM 客户端针对 Symfony
v0.1
2019-02-08 17:06 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-15 20:42:09 UTC
README
安装
步骤 1: 使用 composer 下载 DivLooperElasticAPMBundle
使用 composer 需求包
$ composer require divlooper/elastic-apm-bundle
步骤 2: 启用包
在 bundles.php
配置文件中启用包
<?php // config/bundle.php return [ // ... DivLooper\ElasticAPMBundle\DivLooperElasticAPMBundle::class => ['all' => true], // ... ];
步骤 3: 配置 DivLooperElasticAPMBundle
将以下配置添加到 config/packages/div_looper_elastic_apm.yaml 文件中。
div_looper_elastic_apm: app_name: 'My Symfony Project' app_version: '1.0' elastic_apm_server: 'http://127.0.0.1:8200' secret_token: 'x0x0x0x0x0x'