Skip to content

[READONLY] gRPC transport for OpenTelemetry

Notifications You must be signed in to change notification settings

opentelemetry-php/transport-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Releases Source Mirror Latest Version Stable

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

$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.