承接 subzerobo/elastic-apm-php-agent 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

subzerobo/elastic-apm-php-agent

最新稳定版本:2.0.0

Composer 安装命令:

composer require subzerobo/elastic-apm-php-agent

包简介

PHP Agent for Elastic APM With Intake API V2 Support + UDP Support

README 文档

README

PHP Agent for Elastic APM With Intake API v2 Support + UDP Support + ProtoBuf

Examples

Using PSR7Middleware

Project is using PSR7 Standard to wrap the whole app or any specific route you may need using PSR7Middleware Class

<?php $app = new \Slim\App(); $container = $app->getContainer(); $settings = [ 'defaultConnector' => 'udp', // Send Data Using UDP or TCP 'appName' => 'Sample APP', 'appVersion' => '2.0.0', 'active' => true && PHP_SAPI !== 'cli', 'serverUrl' => 'http://your_elastic_apm_server_ip.com/intake/v2/events', 'secretToken' => null, 'host' => 'your_elastic_apm_server.com', // to disable dns resolve 'hostname' => gethostname(), 'timeout' => 5, // seconds 'apmVersion' => 'v2', 'env' => ['DOCUMENT_ROOT', 'REMOTE_ADDR'], 'cookies' => [], 'httpClient' => [], 'environment' => 'development', 'backtraceLimit' => 0, 'udpAgentIP' => '144.22.22.22', // Go UDP Sidecar IP Address 'udpAgentPort' => 1113, // GO UDP Sidecar Port 'udpUseProto' => true, // Use Protobuf Transport i GO UDP Sidecar 'isDockerContainer' => false, 'containerIdEnv' => 'CONTAINER_ID', 'isKubernetes' => false, 'kuberNamespaceEnv' => 'MY_POD_NAMESPACE', 'kuberPodNameEnv' => 'MY_POD_NAME', 'kuberPodUidEnv' => 'MY_POD_UID' , 'kuberNodeNameEnv' => 'MY_NODE_NAME' , 'cleanup_rules' => [], // Cleanup naming ]; $apmAgent = new \Subzerobo\ElasticApmPhpAgent\ApmAgent($settings); $mw = new \Subzerobo\ElasticApmPhpAgent\Middlewares\PSR7Middleware($container, $apmAgent) $app->add($mw); 

Wrapping Redis/Mysql/other resources Weapper

ActionWrappers

统计信息

  • 总下载量: 18.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固