Skip to content

v2.1.1: More logging configuration

Latest
Compare
Choose a tag to compare
@rgalanakis rgalanakis released this 27 Dec 19:41

What's Changed

  • Add a custom ID provider rather than always using uuid4
  • Add a MakeHandler to allow callers to override the
    log handler.
  • Add TracingHandler, which provides an easy log handler
    that can log out trace and span ids.
  • Allow excluding trace_id from logger attrs,
    for use primarily with TracingHandler
  • Allow AfterRequest to return a null logger
    to skip logging.
  • The logger passed to the request no longer has
    all the request fields. This is a massive number
    of fields which just spams logs. Instead,
    the trace_id can be used for correllation.

Full Changelog: v2.0.0...v2.1.1