PHPackages                             a1comms/opencensus-exporter-stackdriver - 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. a1comms/opencensus-exporter-stackdriver

Abandoned → [affordablemobiles/open-telemetry-operations-php](/?search=affordablemobiles%2Fopen-telemetry-operations-php)Library[Logging &amp; Monitoring](/categories/logging)

a1comms/opencensus-exporter-stackdriver
=======================================

OpenCensus Stackdriver Exporter for PHP

v0.3.0(3y ago)03.6k2Apache-2.0PHPPHP &gt;=7.4

Since Apr 19Pushed 3y agoCompare

[ Source](https://github.com/a1comms/opencensus-php-exporter-stackdriver)[ Packagist](https://packagist.org/packages/a1comms/opencensus-exporter-stackdriver)[ RSS](/packages/a1comms-opencensus-exporter-stackdriver/feed)WikiDiscussions master Synced 1mo ago

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

OpenCensus Stackdriver Exporter for PHP
=======================================

[](#opencensus-stackdriver-exporter-for-php)

This library provides an [`ExporterInterface`](https://github.com/census-instrumentation/opencensus-php/blob/master/src/Trace/Exporter/ExporterInterface.php) for exporting Trace data to the [Stackdriver Trace](https://cloud.google.com/trace/) service.

[![CircleCI](https://camo.githubusercontent.com/69aab1c0b1e1e93a55e5d0d0e85b61376b430533039f98f083857a6c1e16dbdf/68747470733a2f2f636972636c6563692e636f6d2f67682f63656e7375732d65636f73797374656d2f6f70656e63656e7375732d7068702d6578706f727465722d737461636b6472697665722e7376673f7374796c653d737667)](https://circleci.com/gh/census-ecosystem/opencensus-php-exporter-stackdriver)[![Packagist](https://camo.githubusercontent.com/09e00db5b27aa1b24164f0ec1328ab9fbd13e07b0fffbe7d7b9c2da3a5f92792/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e63656e7375732f6f70656e63656e7375732d6578706f727465722d737461636b6472697665722e737667)](https://packagist.org/packages/opencensus/opencensus-exporter-stackdriver)[![PHP-Version](https://camo.githubusercontent.com/88b55fb69143c245c0cc56f5d17e7d27a03252204bc57e225c90784b6688fd6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f70656e63656e7375732f6f70656e63656e7375732d6578706f727465722d737461636b6472697665722e737667)](https://camo.githubusercontent.com/88b55fb69143c245c0cc56f5d17e7d27a03252204bc57e225c90784b6688fd6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f70656e63656e7375732f6f70656e63656e7375732d6578706f727465722d737461636b6472697665722e737667)

Installation &amp; basic usage
------------------------------

[](#installation--basic-usage)

1. Install the `opencensus/opencensus-exporter-stackdriver` package using [composer](https://getcomposer.org/):

    ```
    $ composer require opencensus/opencensus-exporter-stackdriver:~0.1
    ```
2. Initialize a tracer for your application:

    ```
    use OpenCensus\Trace\Tracer;
    use OpenCensus\Trace\Exporter\StackdriverExporter;

    Tracer::start(new StackdriverExporter());
    ```

Customization
-------------

[](#customization)

You may provide an associative array of options to the `StackdriverExporter` at initialization:

```
$options = [];
$exporter = new StackdriverExporter($options);
```

The following options are available:

OptionDefaultDescription`client``new TraceClient($clientConfig)`A configured [`TraceClient`](https://googlecloudplatform.github.io/google-cloud-php/#/docs/google-cloud/v0.59.0/trace/traceclient) to use to export traces`clientConfig``[]`Options to pass to the default TraceClientVersioning
----------

[](#versioning)

[![Packagist](https://camo.githubusercontent.com/09e00db5b27aa1b24164f0ec1328ab9fbd13e07b0fffbe7d7b9c2da3a5f92792/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e63656e7375732f6f70656e63656e7375732d6578706f727465722d737461636b6472697665722e737667)](https://packagist.org/packages/opencensus/opencensus-exporter-stackdriver)

This library follows [Semantic Versioning](http://semver.org/).

Please note it is currently under active development. Any release versioned 0.x.y is subject to backwards incompatible changes at any time.

**GA**: Libraries defined at a GA quality level are stable, and will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority.

**Beta**: Libraries defined at a Beta quality level are expected to be mostly stable and we're working towards their release candidate. We will address issues and requests with a higher priority.

**Alpha**: Libraries defined at an Alpha quality level are still a work-in-progress and are more likely to get backwards-incompatible updates.

**Current Status:** Alpha

Contributing
------------

[](#contributing)

Contributions to this library are always welcome and highly encouraged.

See [CONTRIBUTING](CONTRIBUTING.md) for more information on how to get started.

Releasing
---------

[](#releasing)

See [RELEASING](RELEASING.md) for more information on releasing new versions.

License
-------

[](#license)

Apache 2.0 - See [LICENSE](LICENSE) for more information.

Disclaimer
----------

[](#disclaimer)

This is not an official Google product.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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

Every ~883 days

Total

3

Last Release

1183d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.6

v0.3.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7f82764dbcd478679a400621c6a94ca45c6a4bad04bd6aae24fe4a68eabb68c?d=identicon)[iamacarpet](/maintainers/iamacarpet)

---

Top Contributors

[![chingor13](https://avatars.githubusercontent.com/u/32483?v=4)](https://github.com/chingor13 "chingor13 (13 commits)")[![iamacarpet](https://avatars.githubusercontent.com/u/1333857?v=4)](https://github.com/iamacarpet "iamacarpet (2 commits)")

### Embed Badge

![Health badge](/badges/a1comms-opencensus-exporter-stackdriver/health.svg)

```
[![Health](https://phpackages.com/badges/a1comms-opencensus-exporter-stackdriver/health.svg)](https://phpackages.com/packages/a1comms-opencensus-exporter-stackdriver)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/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.2M138](/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)[open-telemetry/api

API for OpenTelemetry PHP.

1933.0M214](/packages/open-telemetry-api)

PHPackages © 2026

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