def val(self, val: str): self.__val = val if not val: return for per in val.split(","): if len(self.correlation) > config.correlation_element_max_number: break parts = per.split(":") if len(parts) != 2: continue self.correlation[b64decode(parts[0])] = b64decode(parts[1])
def val(self, val: str): self.__val = val if not val: return parts = val.split('-') self.trace_id = b64decode(parts[1]) self.segment_id = b64decode(parts[2]) self.span_id = int(parts[3]) self.service = b64decode(parts[4]) self.service_instance = b64decode(parts[5]) self.endpoint = b64decode(parts[6]) self.client_address = b64decode(parts[7])