Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am psviderski on github.
  • I am spy (https://keybase.io/spy) on keybase.
  • I have a public key whose fingerprint is B4FE CFD7 236C 9C31 D10C A5E1 09F2 7A24 3CD4 6958

To claim this, I am signing this object:

@psviderski
psviderski / settings.py
Created June 25, 2018 13:52
Python structlog with Sentry and Logstash integration
# This list contains all the attributes listed in
# http://docs.python.org/library/logging.html#logrecord-attributes
LOG_RECORD_ATTRIBUTES = {
'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename',
'funcName', 'levelname', 'levelno', 'lineno', 'message', 'module',
'msecs', 'msg', 'name', 'pathname', 'process', 'processName',
'relativeCreated', 'stack_info', 'thread', 'threadName',
}
BASIC_TYPES = (str, bool, int, float, type(None))