British Kiwi expat. Open Source Software Engineer
There are a number of things you can do wrong with go’s context.
So far in this series, I’ve looked at how to use context for two cross-cutting concerns: logging and performance monitoring. The third is one that somewhat overlaps with the logging, which is dealing with panics.
Just about any server application with users is an application with
impatient users. You need to keep on top of performance of your
application. If you have an HTTP handler, you can just go and do some
simple timing of start and end…