[Node] How to ignore the GET / route in my application

Question - How can I ignore the home route of my project?
What I tried was

rules : {
    ignore : [

But I was still getting it in my transaction in the dashboard. The Regex pattern was tested.

Hello @shashwat1.

Welcome to the community!

Would you please confirm which language agent you are utilizing? This will help us find the correct solution for you. Thank you!

@michaelfrederick I am using the NodeJS agent.

I’m having the exact same question. Could anyone provide an answer for this? Thanks!

@sfan109 I tried this solution which is working using the NodeJS agent apis. Please refer to the api documentation [here](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/api-guides/nodejs-agent-api/#transaction-handle-ignore)

app.use('/', (req, res, next) => {
      /** New Relic needs to ignore this route in transactions.
       * @Reason Keeping it here because any pattern matching was not working for the home route.
      const transactionHandle = newrelic.getTransaction();
      res.send(`I'm up`);

Thank you for providing that solution @shashwat1. Please let us know if you have further questions!

Welcome to the community @sfan109. Were you able to try the solution that was provided my Shashwat? Please let us know if you need further assistance.

Is it a known bug that it is impossible to match the transaction using ignore rules for “GET /” ?

@michaelfrederick unfortunately that doesn’t work for my case. We have tried all the approaches we can find from google, like https://discuss.newrelic.com/t/nodejs-agent-not-respecting-rule-to-ignore-path/151786, but none of them works. Can you provide further assistance on what alternatives we could try?