Splunk AppDynamics

Split a service endpoint with POJO return value

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I am creating a custom POJO type service endpoint and want to split it using the return vlaue of the method. 

I could use the "POJO Object Instance to name transcations", unfortunately the method that I want to use takes an argument.

Please let me know how I can do this.

Thanks,

Muthu

Labels (1)
0 Karma
1 Solution

Vijay_Kumar_Ant
Explorer

Hi Muthu,

You cannot do that. It does not make sense to split a SEP with POJO return value. SEPs are inbound calls which invokes a method(POJO).  For an incoming request when you want to split the SEP you can split  with a method paramter and not when after the method is invoked and you have a response/return value. This is not a Data Collector where you are trying to collect data from a method invocation in which case you can collect either from method paramter or from return value.  

Hope this helps.

Thanks,

VJ

View solution in original post

Atyuha_Pal
Contributor

Hi Muthu,

Could you please check with the transaction splitting option available under custom service end point. Please refer to the below doc and attached screenshots.

https://docs.appdynamics.com/display/PRO42/Service+Endpoints#ServiceEndpoints-config_sep

Thanks,

Atyuha

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

The transaction splitting option available under custom service end point "Transaction Splitting" dose not show any options to split using the return value of the method.

I am looking for a splitting option which would split the service endpoint using the return vlaue of the method.

Can you please let me know if there is a way to achieve this?

Thanks,

Muthu 

0 Karma

Vijay_Kumar_Ant
Explorer

Hi Muthu,

You cannot do that. It does not make sense to split a SEP with POJO return value. SEPs are inbound calls which invokes a method(POJO).  For an incoming request when you want to split the SEP you can split  with a method paramter and not when after the method is invoked and you have a response/return value. This is not a Data Collector where you are trying to collect data from a method invocation in which case you can collect either from method paramter or from return value.  

Hope this helps.

Thanks,

VJ

CommunityUser
Splunk Employee
Splunk Employee

Thanks make sense

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...