flow php

UNIFIED DATA PROCESSING FRAMEWORK

composer require flow-php/etl ~0.30.0

ChangelogRelease Cycle

play Try Flow Online

elephant
extract

Extracts

Read from various data sources.

arrow
transform

Transforms

Shape and optimize for your needs.

arrow
load

Loads

Store and secure in one of many available data sinks.


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

Contributors

Join us on GitHub external resource
scroll back to top