Quantcast
Channel: Operations Manager - Application Performance Monitoring (APM) forum
Viewing all articles
Browse latest Browse all 559

How do you mask System.Reflection.Parameter Info?

$
0
0

Hi, 

I'm currently working on the topic of masking Parameters, working with this Blog Post. I works perfectly for most of the Data I want to mask, except fromWCF-Calls.

The Screenshot shows a Demo-WCF Call from our LAB-Environment that we set up, after having Issues with regular WCF-Calls.

The Parameters "methodName", "interfaces" and "className" are easy to mask, simply by creating a <hiddenRule> with them as Parameter. 

The Problem is with the Parameters "Delay" and "ErrorCode". APM creates an array ofSystem.Reflection.ParameterInfo, which looks more like a hash table. In this example, the Delay has the Value 2 (connected via parameter 0), the ErrorCode is 0 (connected via parameter 1).

To mask the actual value of those Parameters, the <hiddenRule> would have to be configured for "0" and "1"...

-

My Question now is, how do you mask System.Reflection.ParameterInfo?

For additional Information, here is an extract from the PropertyBag:

<parameters><variable type="simple"><name>className</name><type>System.String</type><value>WebInfraDemoWcf.WebInfraDemoService</value></variable><variable type="simple"><name>interfaces</name><type>System.String</type><value>WebInfraDemoWcf.IWebInfraDemoService</value></variable><variable type="simple"><name>methodName</name><type>System.String</type><value>GetMyIdentityImpersonated</value></variable><variable type="array"><name>parameterNames</name><type>System.Reflection.ParameterInfo[]</type><variables><variable type="class"><name>0</name><type>System.Reflection.ParameterInfo</type><variables><variable type="simple"><name>parameterName</name><type>System.String</type><value>Delay</value></variable></variables></variable><variable type="class"><name>1</name><type>System.Reflection.ParameterInfo</type><variables><variable type="simple"><name>parameterName</name><type>System.String</type><value>ErrorCode</value></variable></variables></variable></variables></variable><variable type="array"><name>parameters</name><type>System.Object[]</type><variables><variable type="simple"><name>0</name><type>System.Int32</type><value>2</value></variable><variable type="simple"><name>1</name><type>System.Int32</type><value>0</value></variable></variables></variable></parameters>

regards,

Tobias


Viewing all articles
Browse latest Browse all 559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>