This recipe will demonstrate a way to pass log fields between various functions. The Go pkg/context package is an excellent way to pass additional variables and cancelation between functions. This recipe will explore using this functionality to distribute variables between functions for logging purposes.
This style can be adapted to logrus or apex from the previous recipe. We'll use apex for this recipe.