lar-trace为服务之间调用提供链路追踪

栏目: PHP · 发布时间: 7年前

内容简介:安装在

https://github.com/laravelclo...

Laravel Version Compatibility

  • Laravel 5.x.x is supported in the most recent version ( composer require laravelcloud/lar-trace )

Installation

安装 Laravel 5.x

安装 laravelcloud/lar-trace 包:

$ composer require laravelcloud/lar-trace

config/app.php 中做如下配置

'providers' => array(
    /*
     * Package Service Providers...
     */
      LaravelCloud\Trace\TraceLaravel\TracingServiceProvider::class,
)

创建Trace的配置文件( config/trace.php )

$ php artisan vendor:publish --provider="LaravelCloud\Trace\TraceLaravel\TracingServiceProvider"

添加变量至 .env

TRACE_ENABLED=1
TRACE_ENDPOINT_URL=http://127.0.0.1:9411/api/v2/spans
TRACE_RATE=1.0
TRACE_SERVICE_NAME=lar-examples
TRACE_SQL_BINDINGS=false

Lumen 5.x

...

链路追踪系统

Contributing

Dependencies are managed through composer:

$ composer install

Tests can then be run via phpunit:

$ vendor/bin/phpunit

Community


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Introduction to Programming in Java

Introduction to Programming in Java

Robert Sedgewick、Kevin Wayne / Addison-Wesley / 2007-7-27 / USD 89.00

By emphasizing the application of computer programming not only in success stories in the software industry but also in familiar scenarios in physical and biological science, engineering, and appli......一起来看看 《Introduction to Programming in Java》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具