Skip to content

Bugifx: properly set log in context

Compare
Choose a tag to compare
@harnash harnash released this 22 Jan 12:20
· 17 commits to master since this release
08643d2

Previous change did not work since the access log callback function is called after all middlewares and handler done their job and it is too late to alter anything. We use BeforeNextFunc() to inject trace-id since this is the information we can uniformly extract. Rest is to refactoring.