webman-php / arms Goto Github PK
View Code? Open in Web Editor NEWWebman ARMS 阿里云应用监控链路追踪组件
Home Page: https://www.workerman.net/webman
Webman ARMS 阿里云应用监控链路追踪组件
Home Page: https://www.workerman.net/webman
$contents = "[{$query->time} ms] " . vsprintf(str_replace('?', "'%s'", $query->sql), $query->bindings);
$sqlSpan = $tracer->newChild($rootSpan->getContext());
$sqlSpan->setName(SQL_QUERY . ':' . $query->connectionName);
$sqlSpan->start();
$sqlSpan->tag('db.statement', $contents);
$sqlSpan->finish();
//记录入参
$paramsSpan = $tracer->newChild($rootSpan->getContext());
$paramsSpan->setName("Request:Params");
$paramsSpan->start();
$paramsSpan->tag('request.params', json_encode($request->all(), JSON_UNESCAPED_UNICODE));
$paramsSpan->finish();
//记录响应内容
$responseSpan = $tracer->newChild($rootSpan->getContext());
$responseSpan->setName("Response:body");
$responseSpan->start();
$responseSpan->tag('response.body', $result->rawBody());
$responseSpan->finish();
Error: Call to a member function tag() on null in /var/www/php/fj-dmp/vendor/webman/arms/src/Arms.php:43
request()->rootSpan->tag('db.statement', $query->sql . " /{$query->time}ms/");
阿里云还是收到了调用链
目前,正在调试 ARMS 插件
在业务中,我们自己接管了异常
希望插件也能上报接管的异常
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.