• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by PTC S. · Sep 23, 2015 at 02:37 PM ·

Get information for a method with different argument values in a single Business Transaction

Hello All,

I need to capture key value pair from a method.

eg. I have multiple method MyObject.setAttribute methods.

MyObject.setAttribute(String attrName, String attrValue)

MyObject.setAttribute(String attrName, Integer attrValue)

MyObject.setAttribute(String attrName, Boolean attrValue)

The method "MyObject.setAttribute" gets invoked multiple times & for different types of objects. So when I put a sensor for this method, lots of data gets generated.

Now for a Business Transaction, I need the data based on the attrName.

For instance, the attributes for which I need capture information are as follows:

attrName - objName with String value attrName - objNumber with String value attrName - objQuantity with Integer value

I want to see this information in a Business Transaction based on the above 3 parameters (splittings) and alongwith a common parameter say the logged-in User Name.

I tried multiple combinations as follows :

A) Measures created:

1) Method Argument Value - 1st Arg - match regex with "objName|objNumber" 2) Method Argument Value - 2nd Arg (String value)

This gives me all the invocations of the setAttribute method for "objName" & "objNumber". As mentioned earlier, it also gives me unwanted information as this is a common method.

B) Measures created:

1) Method Argument Value - 1st Arg - match regex with "objName|objNumber|objQuantity" 2) Method Argument Value - 2nd Arg (String value) 3) Method Argument Value - 2nd Arg (Integer value)

Does not work as expected. I do not get the desired information. Probably due to the 3rd Measure.

Is there any way I can get the desired information in a single Business Transaction? Any help would be appreciated.

Thanks

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Rajesh S. · Oct 05, 2015 at 12:19 PM

Could you share some purepath or snapshots? It will be helpful.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by PTC S. · Sep 25, 2015 at 02:52 PM

To clarify the question some more:

As part of a purepath the setAttribute(String attrName, Integer attrValue) and setAttribute(String attrName, String attrValue) methods gets called several times. For example:

setAttribute(ID, 10)

setAttribute(Name, Hotel)

setAttribute(Number, 500)

setAttribute(Quantity, 4)

setAttribute(City, Chicago)

setAttribute(State, IL)

I want to create a Business Transaction with splittings capturing the argument values for Name, Number and Quantity only and not capture the values for the other 3 setAttribute calls. It does not seem possible to create a measure which will capture the attrValue based on the attrName in a single business transaction since the attrValue can be either a string or an Integer. It looks like the only way to do this is to create two Business Transactions one with splittings which capture String values and the other for Integer values. Is there a way this can be accomplished with a single Business Transaction?

Any help would be greatly appreciated.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A