Skip to content

Instantly share code, notes, and snippets.

View odannyc's full-sized avatar
💻
Working

Danny Carrillo odannyc

💻
Working
View GitHub Profile
@odannyc
odannyc / gist:517d9472668d1caa29c56128dcb66ce7
Last active December 10, 2019 20:09
datadog tracer troubleshooting
json_handler = logging.StreamHandler(sys.stdout)
json_handler.setFormatter(jsonlogger.JsonFormatter())
json_handler.addFilter(RequestIDLogFilter())
root_logger = logging.getLogger()
root_logger.addHandler(json_handler)
root_logger.setLevel(logging.INFO)
structlog.configure(
processors=[
structlog.stdlib.filter_by_level,