input_ = $input; $this->output_ = $output ? $output : $input; } public function emitZipkinBatch(array $spans) { $this->send_emitZipkinBatch($spans); } public function send_emitZipkinBatch(array $spans) { $args = new \Jaeger\Thrift\Agent\Agent_emitZipkinBatch_args(); $args->spans = $spans; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'emitZipkinBatch', TMessageType::ONEWAY, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { $this->output_->writeMessageBegin('emitZipkinBatch', TMessageType::ONEWAY, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } public function emitBatch(\Jaeger\Thrift\Batch $batch) { $this->send_emitBatch($batch); } public function send_emitBatch(\Jaeger\Thrift\Batch $batch) { $args = new \Jaeger\Thrift\Agent\Agent_emitBatch_args(); $args->batch = $batch; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'emitBatch', TMessageType::ONEWAY, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { $this->output_->writeMessageBegin('emitBatch', TMessageType::ONEWAY, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } }