trace is a wrapper for net/trace that extends it by logging trace/event information to a structured log and providing metrics (counts, errors, histograms of durations) to Prometheus. De-clutter your functions by combining all the things you need to do in one place.