Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def log_event(self, event, payload=None):
with self._lock:
self.logs.append(LogData(event=event, payload=payload))
return super(BasicSpan, self).log_event(event, payload)
def log(self, **kwargs):
with self._lock:
self.logs.append(LogData(**kwargs))
return super(BasicSpan, self).log(**kwargs)