Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opentelemetry-php/transport-grpc
[READONLY] gRPC transport for OpenTelemetry
https://github.com/opentelemetry-php/transport-grpc
Last synced: about 1 month ago
JSON representation
[READONLY] gRPC transport for OpenTelemetry
- Host: GitHub
- URL: https://github.com/opentelemetry-php/transport-grpc
- Owner: opentelemetry-php
- Created: 2022-11-29T04:25:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T23:14:39.000Z (10 months ago)
- Last Synced: 2024-03-15T00:28:26.655Z (10 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Releases](https://img.shields.io/badge/releases-purple)](https://github.com/opentelemetry-php/transport-grpc/releases)
[![Source](https://img.shields.io/badge/source-transport--grpc-green)](https://github.com/open-telemetry/opentelemetry-php/tree/main/src/Contrib/Grpc)
[![Mirror](https://img.shields.io/badge/mirror-opentelemetry--php:transport--grpc-blue)](https://github.com/opentelemetry-php/transport-grpc)
[![Latest Version](http://poser.pugx.org/open-telemetry/transport-grpc/v/unstable)](https://packagist.org/packages/open-telemetry/transport-grpc/)
[![Stable](http://poser.pugx.org/open-telemetry/transport-grpc/v/stable)](https://packagist.org/packages/open-telemetry/transport-grpc/)# OpenTelemetry gRPC Transport
gRPC transport for OpenTelemetry.
This package provides a transport which can be used by `open-telemetry/exporter-otlp` to send protobuf-encoded telemetry
over gRPC.## Documentation
https://opentelemetry.io/docs/instrumentation/php/exporters/#otlp
## Usage
See https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/traces/exporters/otlp_grpc.php
```php
$transport = (new \OpenTelemetry\Contrib\Grpc\GrpcTransportFactory())->create('http://collector:4317');
$exporter = new \OpenTelemetry\Contrib\Otlp\SpanExporter($transport);
```## Contributing
This repository is a read-only git subtree split.
To contribute, please see the main [OpenTelemetry PHP monorepo](https://github.com/open-telemetry/opentelemetry-php).