承接 megaease/easeagent-sdk-php 相关项目开发

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

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

megaease/easeagent-sdk-php

最新稳定版本:0.0.2

Composer 安装命令:

composer require megaease/easeagent-sdk-php

包简介

A Easeagent instrumentation for PHP

README 文档

README

A lightweight & opening PHP SDK for Cloud-Native and APM system

Overview

  • EaseAgent SDK can collect distributed application tracing, which could be used in the APM system and improve the observability of a distributed system. for the tracing, EaseAgent SDK follows the Google Dapper paper and use zipkin-php core library.
  • EaseAgent SDK also can work with Cloud-Native architecture.
  • EaseAgent SDK also can work with MegaEase Cloud. For example, it can monitor for service by PHP Docker APP.

Principles

  • Safe to PHP application/service.
  • Highly extensible, users can easily do extensions through the api
  • Design for Micro-Service architecture, collecting the data from a service perspective.

Features

  • Easy to use. It is right out of the box for Http Server Tracing.

    • Collecting Tracing Logs.
      • Http Server
      • Client
    • Decorate the Span API for Middleware
  • Data Reports

    • Console Reporter.
    • Http Reporter.
  • Standardization

    • The tracing data format is fully compatible with the Zipkin data format.

QuickStart

First production ready, simple and full Easeagent SDK implementation without dependencies.

1. Installing via Composer

easeagent-sdk-php can be installed via Composer:

$ composer require megaease/easeagent-sdk-php

2. Use

use Easeagent\AgentBuilder;

3. Init Agent

// new tracing agent from yaml file.
// If you want to publish the `docker app` through the `cloud of megaease` and send the monitoring data to the `cloud`, 
// please obtain the configuration file path through the environment variable `EASEAGENT_CONFIG`.
// We will pass it to you the `cloud configuration` file path.
$agent = AgentBuilder::buildFromYaml(getenv('EASEAGENT_CONFIG'));//by default: Console Reporter

4. Server Span

$agent->serverReceive(function ($span) use ($agent) {
    echo "<p>Welcome to PHP</p>";
});

Documentation

About Config

Example

Obs. for a more complete router/frontend/backend example, check this repository

About MegaEase Cloud

  1. Use SDK in MegaEase Cloud
  2. Get MegaEase Cloud Config. About MegaEase Cloud Config
  3. Decorate the Span. please use api: Agent.startMiddlewareSpan for decorate Span.

Community

If you have any questions, welcome to discuss them in our community. Welcome to join!

Licenses

EaseAgent PHP SDK is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固