文件名称:zipkin-php:适用于PHP的Zipkin工具
文件大小:114KB
文件格式:ZIP
更新时间:2024-06-12 07:34:54
php instrumentation zipkin hacktoberfest observability
Zipkin PHP Zipkin PHP是Zipkin的官方PHP Tracer实现,由OpenZipkin社区支持。 安装 composer require openzipkin/zipkin 设置 use Zipkin \ Annotation ; use Zipkin \ Endpoint ; use Zipkin \ Samplers \ BinarySampler ; use Zipkin \ TracingBuilder ; use Zipkin \ Reporters \ Http ; // First we create the endpoint that describes our service $ endpoint = Endpoint :: create ( 'my_service' ); $ reporter = new Http ([ 'endpoint_