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

Adding more data to web transaction


#1

I would like to capture the transaction name by parameter in the body.

I have a web transaction url /application POST that is used to submittal account opening Application. We have different action names such as “STEP1”, “STEP2” , “STEP3” in the body if request. I would like to capture the action name in the transaction name. How do i do it?

Also, I want to add more data like outcome of application to the transaction. How can I do it?


#2

Hi, @Anant.Sajnani: Several of the New Relic language agents support custom transaction naming; the method is different for each language. For example, here are the methods available to specify the transaction name in Java: https://docs.newrelic.com/docs/agents/java-agent/instrumentation/naming-web-transactions. You may use this technique to add “Step1”, “Step2”, etc. to the transaction name.

You may also record custom attributes for a transaction, such as the transaction result, using one of the methods described here: https://docs.newrelic.com/docs/agents/manage-apm-agents/agent-metrics/collect-custom-attributes. The attributes will be visible in APM transaction and error traces, and as part of the Transaction event in Insights.


#3

Thanks for the quick response.