automatic-graphql-transaction-naming-for-new-relic icon indicating copy to clipboard operation
automatic-graphql-transaction-naming-for-new-relic copied to clipboard

[BUG] Double Slash `\\` in transaction names causes escape character issues in the new APM UI

Open damienwebdev opened this issue 2 years ago • 0 comments

SELECT count(*), sum(duration) as sum, average(duration) as average FROM PageView WHERE (appId= "x"and name = 'WebTransaction/Custom/GraphQl/Controller/GraphQl\\Query\\Multiple') FACET `browserTransactionName` LIMIT MAX SINCE 3600 seconds AGO

The error I get out of the new GraphQl UI looks like

{
  "data": {
    "actor": {
      "__typename": "Actor",
      "account": {
        "__typename": "Account",
        "browsernrql": null,
        "id": x
      }
    }
  },
  "errors": [
    {
      "extensions": {
        "errorClass": "INVALID_INPUT"
      },
      "locations": [
        {
          "column": 128,
          "line": 1
        }
      ],
      "message": "NRQL Syntax Error: Error at line 1 position 119, perhaps unterminated '",
      "path": [
        "actor",
        "account",
        "browsernrql"
      ]
    }
  ]
}

damienwebdev avatar Jun 30 '22 00:06 damienwebdev