PHPackages                             zhaqq/zipkin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. zhaqq/zipkin

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

zhaqq/zipkin
============

the zipkin for fastd

v0.1.0(7y ago)13[1 issues](https://github.com/viliy/fastd-zipkin/issues)PHPPHP &gt;=7.1

Since Jan 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/viliy/fastd-zipkin)[ Packagist](https://packagist.org/packages/zhaqq/zipkin)[ RSS](/packages/zhaqq-zipkin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Zipkin - Tracing Analysis 链路追踪
==============================

[](#zipkin---tracing-analysis-链路追踪)

zipkin链路分析

install
-------

[](#install)

> composer require zhaqq/zipkin

Example
-------

[](#example)

### FastD

[](#fastd)

- 配置

```
cp vendor/fastd/zipkin/src/Config/zipkin.php config/zipkin.php

vim config/app.php
```

```
    'services' => [
        \FastD\ServiceProvider\CacheServiceProvider::class,
        \FastD\ServiceProvider\LoggerServiceProvider::class,
        \FastD\ServiceProvider\RouteServiceProvider::class,

        // add Zipkin
        \Zhaqq\Zipkin\Provider\ZipkinProvider::class,
    ],
```

- usage

```

    // use callback
    $response = app()->get('zipkin')->childSpan(
        function () use () {
            // do something
            return something

            return $response;
        }, 'server name', 'SERVER or CLIENT or ...', annotate[string or array], tag[array]
    );

    //or use method
    app()->get('zipkin')->child($name, $kind = Zipkin::SERVER, $annotate = null, array $tag = [])
    // do something
     app()->get('zipkin')->childFinished()

```

### other

[](#other)

```
require __DIR__ . '/vendor/autoload.php';

use Zhaqq\Zipkin\Span;

$span = new Span();

$span->instance(string $name, $options = [], $isParent = true);

// do something

$span->childSpan(callable $request, $name, $kind = Zipkin::SERVER, $annotate = null, array $tag = [])

// do something

register_shutdown_function(
    function () use ($span) {
        $span->finised();
    }
);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f14694b4665d82d319b5a9321824d9b23174039ec67fa44098b64e9d32e7cf0?d=identicon)[viliy](/maintainers/viliy)

---

Top Contributors

[![viliy](https://avatars.githubusercontent.com/u/22161786?v=4)](https://github.com/viliy "viliy (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zhaqq-zipkin/health.svg)

```
[![Health](https://phpackages.com/badges/zhaqq-zipkin/health.svg)](https://phpackages.com/packages/zhaqq-zipkin)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M137](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
