Definition
/**
* Create a gRPC transport for OTLP endpoints.
*
* Creates a GrpcTransport configured to send telemetry data to an OTLP-compatible
* endpoint using gRPC protocol with Protobuf serialization.
*
* Requires:
* - ext-grpc PHP extension
* - google/protobuf package
* - open-telemetry/gen-otlp-protobuf package
*
* Example usage:
* ```php
* $transport = otlp_grpc_transport(
* endpoint: 'localhost:4317',
* serializer: otlp_protobuf_serializer(),
* );
* ```
*
* @param string $endpoint gRPC endpoint (e.g., 'localhost:4317')
* @param ProtobufSerializer $serializer Protobuf serializer for encoding telemetry data
* @param array<string, string> $headers Additional headers (metadata) to include in requests
* @param bool $insecure Whether to use insecure channel credentials (default true for local dev)
*/
otlp_grpc_transport(string $endpoint, ProtobufSerializer $serializer, array $headers, bool $insecure) : GrpcTransport