Exemplo n.º 1
0
 def raised(self) -> 'Span':
     self.error_occurred = True
     self.logs = [
         Log(items=[
             LogItem(key='Traceback', val=traceback.format_exc()),
         ])
     ]
     return self
Exemplo n.º 2
0
 def log(self, ex: Exception) -> 'Span':
     self.error_occurred = True
     self.logs.append(Log(items=LogItem(key='Traceback', val=str(ex))))
     return self