Instrument Go segments | New Relic Documentation
With APM's Go agent, you can set up segments, which measure the timing of specific blocks of code in your Golang app.