Exemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'span_guid', 'type' => TType::STRING), 2 => array('var' => 'runtime_guid', 'type' => TType::STRING), 3 => array('var' => 'span_name', 'type' => TType::STRING), 4 => array('var' => 'join_ids', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\CroutonThrift\\TraceJoinId')), 5 => array('var' => 'oldest_micros', 'type' => TType::I64), 6 => array('var' => 'youngest_micros', 'type' => TType::I64), 8 => array('var' => 'attributes', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\CroutonThrift\\KeyValue')), 7 => array('var' => 'deprecated_error_text', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['span_guid'])) {
             $this->span_guid = $vals['span_guid'];
         }
         if (isset($vals['runtime_guid'])) {
             $this->runtime_guid = $vals['runtime_guid'];
         }
         if (isset($vals['span_name'])) {
             $this->span_name = $vals['span_name'];
         }
         if (isset($vals['join_ids'])) {
             $this->join_ids = $vals['join_ids'];
         }
         if (isset($vals['oldest_micros'])) {
             $this->oldest_micros = $vals['oldest_micros'];
         }
         if (isset($vals['youngest_micros'])) {
             $this->youngest_micros = $vals['youngest_micros'];
         }
         if (isset($vals['attributes'])) {
             $this->attributes = $vals['attributes'];
         }
         if (isset($vals['deprecated_error_text'])) {
             $this->deprecated_error_text = $vals['deprecated_error_text'];
         }
     }
 }
Exemplo n.º 2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'span_guid', 'type' => TType::STRING), 11 => array('var' => 'trace_guid', 'type' => TType::STRING), 2 => array('var' => 'runtime_guid', 'type' => TType::STRING), 3 => array('var' => 'span_name', 'type' => TType::STRING), 4 => array('var' => 'join_ids', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\CroutonThrift\\TraceJoinId')), 5 => array('var' => 'oldest_micros', 'type' => TType::I64), 6 => array('var' => 'youngest_micros', 'type' => TType::I64), 8 => array('var' => 'attributes', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\CroutonThrift\\KeyValue')), 9 => array('var' => 'error_flag', 'type' => TType::BOOL), 10 => array('var' => 'log_records', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\CroutonThrift\\LogRecord')));
     }
     if (is_array($vals)) {
         if (isset($vals['span_guid'])) {
             $this->span_guid = $vals['span_guid'];
         }
         if (isset($vals['trace_guid'])) {
             $this->trace_guid = $vals['trace_guid'];
         }
         if (isset($vals['runtime_guid'])) {
             $this->runtime_guid = $vals['runtime_guid'];
         }
         if (isset($vals['span_name'])) {
             $this->span_name = $vals['span_name'];
         }
         if (isset($vals['join_ids'])) {
             $this->join_ids = $vals['join_ids'];
         }
         if (isset($vals['oldest_micros'])) {
             $this->oldest_micros = $vals['oldest_micros'];
         }
         if (isset($vals['youngest_micros'])) {
             $this->youngest_micros = $vals['youngest_micros'];
         }
         if (isset($vals['attributes'])) {
             $this->attributes = $vals['attributes'];
         }
         if (isset($vals['error_flag'])) {
             $this->error_flag = $vals['error_flag'];
         }
         if (isset($vals['log_records'])) {
             $this->log_records = $vals['log_records'];
         }
     }
 }