Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

New relic for Golang gin



I have an application written in Golang and using Gin as the HTTP framework. I am having problems with using new relic for the mentioned setup. The transactions do not show http status code and it does not behave like new relic used for node.js or java.

Any help is appreciated.


Hi @hyayi, just wondering what veersion of the New Relic Go agent you are using? Also the example on our Go GitHub to add Transaction access function to gin support may help :slight_smile:


Hi @hyayi

Unfortunately using any gin.Context methods that delegate to Context.Render (such as Context.JSON ) will result in missing response codes. This is a consequence of the Context.Status method not using the Writer field which our instrumentation has replaced.

I have created a PR against Gin to get this fixed here:

I’m hoping that gets merged soon!