Skip to content
Search
DSL · Telemetry otlp

otlp_protobuf_serializer

Definition

/**
 * Create a Protobuf serializer for OTLP.
 *
 * Returns a ProtobufSerializer that converts telemetry data to OTLP Protobuf binary format.
 * Use this with CurlTransport for Protobuf over HTTP, or with GrpcTransport.
 *
 * Requires:
 * - google/protobuf package
 *
 * Example usage:
 * ```php
 * $serializer = otlp_protobuf_serializer();
 * $transport = otlp_curl_transport($endpoint, $serializer);
 * ```
 */
otlp_protobuf_serializer() : ProtobufSerializer

Contributors

Built in the open.

Join us on GitHub
scroll back to top