Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
php probe for zipkin and opentracing
| Date | Stars |
|---|---|
| 2026-07-24 | 789 |
| 2026-07-25 | 789 |
| 2026-07-28 | 789 |
| 2026-07-30 | 789 |
| 2026-08-06 | 789 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# molten
> Readme in [Chinese 中文](https://github.com/chuan-yun/Molten/blob/master/README_ZH.md)
[](https://travis-ci.org/chuan-yun/Molten)
molten is transparency tool for application tracing it self module call.
It trace php app core call and output zipkin/opentracing format trace log.
Provides features about muliti trace sapi, multi sampling type, upload tracing
status, module control and muliti sink type.
It very easy to build a [distributed systems tracing infrastructure](https://research.google.com/pubs/pub36356.html)
base on php, already run on thousand instance on production env.
# Table of contents
----
1. [Installing](#install)
2. [QuickStart](#quickstart)
3. [Configure](#configure)
4. [Function](#function)
5. [Verify](#verify)
6. [Features](#features)
7. [Contributing](#contributing)
8. [License](#license)
# Installing
Everything you should need to install molten on your system.
~~~
phpize
./configure
make && make install
~~~
`make install` copies `molten.so` to and appropriate location, but you still need to enable the module int the PHP config file, To do so, either edit your php.ini or add ad molten.ini file in `/etc/php5/conf.d` with the following contents:`extension=molten.so`.
at `./configure` phase, you can also add `--enable-zipkin-header=yes` to support zipkin B3 header.
if you want molten support `POST` method , at the compile phase you should check `libcurl-devel` is installed.
# QuickStart
~~~
cd example
sh run.sh
~~~
open `http://127.0.0.1:9411/zipkin/` in your browser, you can see the tracing detail in it.
if you think above is too simple, you also can do this.
~~~
cd example
sh complex.sh
~~~
it is cool, alright?
`NOTICE` if you not see the trace, you select EndTime +1 hour.
# Configure
## Base Config
`molten.enable` set 1 enable or set 0 disable, default `1`.
`molten.service_name` is to set service name for label app service name. now we support add `ini_set('molten.service_name', 'YOUR_PROJECT_NAME'); ` to code to trace different projects using same php enveroment.
`molten.tracing_cli` set `1` to trace, cli sapi, `0` not trace, just use for trace unit test, default `0`.
`molten.open_report` set `1` to open report php error, default `0`.
## Sampling Config
`molten.sampling_type` sampling type choose to use sampling by rate(`1`) or request(`2`), default is `1`.
`molten.sampling_request` sampling by request, set to per min request num, defualt is `1000`.
`molten.sampling_rate` determine a request sampled or not by rate, default is `64`.
## Control Config
`molten.notify_uri` the uri for molten to notify manger.
## Report Config
report module output type is same as sink module
`molten.report_interval` reporter call interval, default `60`.
`molten.report_limit` reporter list limit current only for error num, default `100`.
## Sink Config
`molten.sink_type` sink type, `1` write log, log path is depend on `molten.sink_log_path`, `2` write log to standand output, `3` write log to syslog, `4` use curl to send trace log, http uri depend on `molten.sink_http_uri`.
`molten.output_type` output spans on one line(`1`) or one line one span(`2`).
`molten.sink_log_path` locate log path.
`molten.sink_http_uri` locate log http uri.
`molten.sink_syslog_unix_socket` transform log to syslog udp unix domain collector.
## Spans Config
`molten.span_format` span format, you can select `zipkin` or `zipkin_v2` or `opentracing` for different tracing system.
# Function
`molten_span_format()` get current span format, return zipkin or opentraceing (string).
`molten_get_traceid()` get current context traceid, return hex string.
`molten_set_traceid($trace_id)` set current context traceid, return void.
# Verify
```shell
php -d extension=molten.so -d molten.enable=1 -d molten.sink_type=2 -d molten.tracing_cli=1 -d molten.sampling_rate=1 -r '$c=curl_init("http://localhost:12345");curl_exec($c);'
```
You can see outpExcerpt of 7,106 characters
Read on GitHub85
12
Remi Collet · Red Hat Inc, Fedora Project, Remi's RPM Repository
4
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:3ad5948f112fb651, topic:tracing