{"id":13761682,"url":"https://github.com/census-ecosystem/opencensus-php-exporter-zipkin","last_synced_at":"2025-05-10T14:30:35.521Z","repository":{"id":57032091,"uuid":"127479739","full_name":"census-ecosystem/opencensus-php-exporter-zipkin","owner":"census-ecosystem","description":"OpenCensus PHP exporters for Zipkin","archived":true,"fork":false,"pushed_at":"2023-05-02T19:13:57.000Z","size":30,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-11T12:24:56.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/census-ecosystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2018-03-30T22:49:13.000Z","updated_at":"2023-07-31T17:42:21.000Z","dependencies_parsed_at":"2024-01-17T16:58:10.690Z","dependency_job_id":"147a9faa-0e72-4ee5-95e5-ddfbb0f94a1d","html_url":"https://github.com/census-ecosystem/opencensus-php-exporter-zipkin","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.33333333333333337","last_synced_commit":"c31c19002e83c35b1cc75f0e2c63394e2760cedd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-php-exporter-zipkin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-php-exporter-zipkin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-php-exporter-zipkin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/census-ecosystem%2Fopencensus-php-exporter-zipkin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/census-ecosystem","download_url":"https://codeload.github.com/census-ecosystem/opencensus-php-exporter-zipkin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253428178,"owners_count":21906864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T14:00:22.189Z","updated_at":"2025-05-10T14:30:35.308Z","avatar_url":"https://github.com/census-ecosystem.png","language":"PHP","funding_links":[],"categories":["Exporters"],"sub_categories":["PHP"],"readme":"\u003e **Warning**\n\u003e\n\u003e OpenCensus and OpenTracing have merged to form [OpenTelemetry](https://opentelemetry.io), which serves as the next major version of OpenCensus and OpenTracing.\n\u003e\n\u003e OpenTelemetry has now reached feature parity with OpenCensus, with tracing and metrics SDKs available in .NET, Golang, Java, NodeJS, and Python. **All OpenCensus Github repositories, except [census-instrumentation/opencensus-python](https://github.com/census-instrumentation/opencensus-python), will be archived on July 31st, 2023**. We encourage users to migrate to OpenTelemetry by this date.\n\u003e\n\u003e To help you gradually migrate your instrumentation to OpenTelemetry, bridges are available in Java, Go, Python, and JS. [**Read the full blog post to learn more**](https://opentelemetry.io/blog/2023/sunsetting-opencensus/).\n\n# OpenCensus Zipkin Exporter for PHP\n\nThis library provides an [`ExporterInterface`][exporter-interface] for exporting\nTrace data to a Zipkin instance.\n\n[![CircleCI](https://circleci.com/gh/census-ecosystem/opencensus-php-exporter-zipkin.svg?style=svg)][ci-build]\n[![Packagist](https://img.shields.io/packagist/v/opencensus/opencensus-exporter-zipkin.svg)][packagist-package]\n![PHP-Version](https://img.shields.io/packagist/php-v/opencensus/opencensus-exporter-zipkin.svg)\n\n## Installation \u0026 basic usage\n\n1. Install the `opencensus/opencensus-exporter-zipkin` package using [composer][composer]:\n\n    ```bash\n    $ composer require opencensus/opencensus-exporter-zipkin:~0.1\n    ```\n\n1. Initialize a tracer for your application:\n\n    ```php\n    use OpenCensus\\Trace\\Tracer;\n    use OpenCensus\\Trace\\Exporter\\ZipkinExporter;\n\n    Tracer::start(new ZipkinExporter('my-service-name'));\n    ```\n\n## Customization\n\n### Configuring the Zipkin endpoint\n\nYou may provide an optional initialization parameter for the Zipkin endpoint.\nThis value should be a full URL to the v2 spans endpoint.\n\n```php\n$exporter = new ZipkinExporter('my-service-name', 'http://example.com:9411/api/v2/spans');\n```\n\n### Configuring the local IPv4 or IPv6 address\n\nZipkin allows you to optionally specify the host IP address of the server that\nis handling the traced requests.\n\nFor IPv4:\n\n```php\n// gethostbyname may make a DNS query, so you may want to cache this\n$ipv4 = gethostbyname(gethostname());\n$exporter-\u003esetLocalIpv4($ipv4);\n```\n\nSimilarly, you may set the local IPv6 address if you can obtain it:\n\n```php\n$exporter-\u003esetLocalIpv6($ipv6);\n```\n\n## Versioning\n\n[![Packagist](https://img.shields.io/packagist/v/opencensus/opencensus-exporter-zipkin.svg)][packagist-package]\n\nThis library follows [Semantic Versioning][semver].\n\nPlease note it is currently under active development. Any release versioned\n0.x.y is subject to backwards incompatible changes at any time.\n\n**GA**: Libraries defined at a GA quality level are stable, and will not\nintroduce backwards-incompatible changes in any minor or patch releases. We will\naddress issues and requests with the highest priority.\n\n**Beta**: Libraries defined at a Beta quality level are expected to be mostly\nstable and we're working towards their release candidate. We will address issues\nand requests with a higher priority.\n\n**Alpha**: Libraries defined at an Alpha quality level are still a\nwork-in-progress and are more likely to get backwards-incompatible updates.\n\n**Current Status:** Alpha\n\n\n## Contributing\n\nContributions to this library are always welcome and highly encouraged.\n\nSee [CONTRIBUTING](CONTRIBUTING.md) for more information on how to get started.\n\n## Releasing\n\nSee [RELEASING](RELEASING.md) for more information on releasing new versions.\n\n## License\n\nApache 2.0 - See [LICENSE](LICENSE) for more information.\n\n## Disclaimer\n\nThis is not an official Google product.\n\n[exporter-interface]: https://github.com/census-instrumentation/opencensus-php/blob/master/src/Trace/Exporter/ExporterInterface.php\n[census-org]: https://github.com/census-instrumentation\n[composer]: https://getcomposer.org/\n[semver]: http://semver.org/\n[ci-build]: https://circleci.com/gh/census-ecosystem/opencensus-php-exporter-zipkin\n[packagist-package]: https://packagist.org/packages/opencensus/opencensus-exporter-zipkin","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcensus-ecosystem%2Fopencensus-php-exporter-zipkin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcensus-ecosystem%2Fopencensus-php-exporter-zipkin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcensus-ecosystem%2Fopencensus-php-exporter-zipkin/lists"}