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

Suppressing a Segment in a non-web transaction

apm
java
configuration

#1

We have some transactions in our application that are categorized under Non-Web->Job. These transactions make calls out to AWS SQS and we utilize a long poll, where it will make a request and wait up to 10 seconds if there are no messages, returning as soon as there are messages. This allows us to limit the number of calls we make to SQS and be more responsive when messages appear on the queue. However, this makes a lot of transactions show up as slow and produce transaction traces because when there is little or no activity on the queue, the transaction takes a minimum of 10 seconds. Is there a way to mark these calls to SQS as ignored so that they don’t count towards the overall transaction time? This would allow me to surface the transactions that are really taking a long time to run.

Thanks


#2

We offer multiple ways to accomplish many tasks.

We cover a few different ways in our documentation at
https://docs.newrelic.com/docs/agents/java-agent/custom-instrumentation/custom-instrumentation-editor-instrument-ui

and

https://docs.newrelic.com/docs/agents/java-agent/instrumentation/ignore-transactions-using-api

If you need clarification or run into an issue, let us know.