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

Feature Idea: Go agent doesn't send request query string




I’m using go-agent v2.7.0, I can’t see request query strings in the transaction summary. How can i send automatically query params to newrelic?

New Relic edit

  • I want this, too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.



The Go Agent does not support capturing query params, so I will go ahead and set this down the path of being marked as a feature request. In the meantime, I suggest looking into recording these as custom attributes on your transaction.

Something along the lines of:

func handler(w http.ResponseWriter, r *http.Request) {
    txn := newrelic.FromContext(r.Context())
    for key, val := range r.URL.Query() {
        txn.AddAttribute(key, val[0])
    fmt.Fprintf(w, "*")