openzipkin / zipkin-php-example Goto Github PK
View Code? Open in Web Editor NEWSee how much time php services spend on an http request
License: Apache License 2.0
See how much time php services spend on an http request
License: Apache License 2.0
hi, i am using this example , followed your guide, when i input curl http://localhost:8081 in terminal, i got this error blow
<br />
<b>Fatal error</b>: Uncaught TypeError: Argument 2 passed to Zipkin\Reporters\Http::__construct() must be of the type array, object given, called in /Users/admin/private/zipkin-php-example/functions.php on line 18 and defined in /Users/admin/private/zipkin-php-example/vendor/jcchavezs/zipkin/src/Zipkin/Reporters/Http.php:29
Stack trace:
#0 /Users/admin/private/zipkin-php-example/functions.php(18): Zipkin\Reporters\Http->__construct(Object(Zipkin\Reporters\Http\CurlFactory), Object(Monolog\Logger))
#1 /Users/admin/private/zipkin-php-example/frontend.php(11): create_tracing('frontend', '127.0.0.1')
#2 {main}
thrown in <b>/Users/admin/private/zipkin-php-example/vendor/jcchavezs/zipkin/src/Zipkin/Reporters/Http.php</b> on line <b>29</b><br />
i am a java programer,try to build tracing system between java and php, need some help @jcchavezs
I am javaer,not familar with php(the best language in the world).when run the example, fail in the backend.php
Line6
require_once __DIR__ . '/vendor/autoload.php';
when run composer install
, everything is ok.Do we need to polish up the doc for beginner like me?if so,I can give a PR.
the traces of this example is too simple,can we do some random calls to make the traces more sophisticated, let users see the zipkin's power?
if our PHP applications use zipkin,Does zipkin intrude too much into origin PHP codes?e,g
$span->setKind(Zipkin\Kind\SERVER);
$span->setName('parse_request');
Does PHP has something like filter,annotation or AOP?
All repositories in the org are moving towards github actions.
Ping @basvanbeek
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.