cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Get arguments as splitting in Business Transaction.

akshay_shinde2
Inactive

Hi,

I would like to extract argument value & use it as splitting in BT.

Tried to use "Methods - Argument Value" measure but doesn't gives me any result.

Please help me in this. Reference screenshot attached.

BR,

AK

5 REPLIES 5

Radu
Dynatrace Pro
Dynatrace Pro

Hi Akshay,

It doesn't work because it's not a method argument. It's a URI.

Your method is getInputStream()

Use URI Path as a splitting instead.

Best regards,

Radu

akshay_shinde2
Inactive

Hi Radu,

Thanks for the inputs.

I'm able to see the URI in BT splittings but is it the same URI from of arguments

getInputStream()? if yes then it should be reported something like https://xxx.yyy.zzzz.com:3321/webservices/rest/XX_...

See the screenshot attached of BT result.

BR,

AK

Depending on how you set up the URI Pattern measure, it may capture just the last part of the URI, ignoring host and port (in the measure definition, there is a light bulb button you can click to test how different values will get reported).

However, if you are interested in just one call, why are you splitting the BT? Try instead filtering by the URI Pattern of your web service call.

Hi Akshay,

In attempt to fetch the URI pattern, you have placed the argument sensor on the generic class HttpUrlConnection -- this should be avoided. Good news is that you can readily extract the URL pattern by creating a web request URI pattern value instead of putting sensor. Or open the Web Requests dashlet.

Let me know if you need help with regex.

Regards, Rajesh.

deepak_6_sharma
Inactive

Hi Radu S

Can you clarify how I can take URI path.

Hi akshay s

Can you give me screen shot how you have done this. I am using 7.1.

Thanks in advance.