jcleng / opentelemetry-exporter-zincsearch
opentelemetry使用zincsearch
Package info
github.com/jcleng/opentelemetry-exporter-zincsearch
pkg:composer/jcleng/opentelemetry-exporter-zincsearch
1.0.5
2026-07-29 06:54 UTC
Requires
- php: >=8.1
- guzzlehttp/guzzle: ^7.10
- open-telemetry/sdk: ^1.9
- psr/log: ^1.1 || ^2.0 || ^3.0
Requires (Dev)
- phpunit/phpunit: ^9.0 || ^10.0
This package is not auto-updated.
Last update: 2026-07-29 08:56:08 UTC
README
zincsearch exporter for OpenTelemetry.
Installation
composer require jcleng/opentelemetry-exporter-zincsearch
Usage
See example/1.php for a complete example.
Configuration
The SpanExporterFactory accepts a configuration array with the following keys:
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
zinc_url |
string | Yes | - | ZincSearch base URL (e.g. http://127.0.0.1:4080) |
zinc_password |
string | Yes | - | Base64-encoded Basic auth credential |
index_name |
string | No | exporter_zincsearch |
Target ZincSearch index name |
timeout |
float | No | 5.0 |
HTTP request timeout in seconds |
logger |
LoggerInterface | No | NullLogger |
PSR-3 logger for error logging |
guzzle_options |
array | No | [] |
Extra Guzzle request options (e.g. ['no_aspect' => true] for Hyperf) |
Example
use OpentelemetryExporter\OpenTelemetry\Exporter\ZincSearch\SpanExporterFactory; $exporter = (new SpanExporterFactory([ 'zinc_url' => 'http://127.0.0.1:4080', 'zinc_password' => 'BASE64_ENCODED_CREDENTIALS', 'index_name' => 'my_traces', 'timeout' => 5.0, ]))->create();
Contributing
This repository is a read-only git subtree split. To contribute, please see the main OpenTelemetry PHP monorepo.