@@ -89,7 +89,9 @@ public void parse(object request)
89
89
string headerValue = headerCollection ? . Get ( cHeader ) ;
90
90
if ( headerValue != null )
91
91
{
92
- InternalApi . AddCustomParameter ( prefix + cHeader , headerValue ) ;
92
+ //InternalApi.AddCustomParameter(prefix + cHeader, headerValue);
93
+ agent . CurrentTransaction . AddCustomAttribute ( prefix + cHeader , headerValue ) ;
94
+
93
95
}
94
96
}
95
97
}
@@ -111,12 +113,14 @@ public void parse(object request)
111
113
string paramValue = queryStringParamCollection ? . Get ( cParam ) ;
112
114
if ( paramValue != null )
113
115
{
114
- InternalApi . AddCustomParameter ( prefix + cParam , paramValue ) ;
116
+ //InternalApi.AddCustomParameter(prefix + cParam, paramValue);
117
+ agent . CurrentTransaction . AddCustomAttribute ( prefix + cParam , paramValue ) ;
115
118
}
116
119
paramValue = formParamCollection ? . Get ( cParam ) ;
117
120
if ( paramValue != null )
118
121
{
119
- InternalApi . AddCustomParameter ( prefix + cParam , paramValue ) ;
122
+ //InternalApi.AddCustomParameter(prefix + cParam, paramValue);
123
+ agent . CurrentTransaction . AddCustomAttribute ( prefix + cParam , paramValue ) ;
120
124
}
121
125
}
122
126
}
@@ -132,7 +136,8 @@ public void parse(object request)
132
136
{
133
137
//Does this work for mulitple cookie values? Code probably needs review
134
138
object cval = httpCookieObject ? . GetType ( ) ? . GetProperty ( "Value" ) ? . GetValue ( httpCookieObject ) ;
135
- InternalApi . AddCustomParameter ( prefix + cCookie , cval . ToString ( ) ) ;
139
+ //InternalApi.AddCustomParameter(prefix + cCookie, cval.ToString());
140
+ agent . CurrentTransaction . AddCustomAttribute ( prefix + cCookie , cval . ToString ( ) ) ;
136
141
//agent.Logger.Log(Level.Info, "Custom AspNet Extension: Value of HTTP cookie" + cCookie + "]=" + cval);
137
142
}
138
143
}
0 commit comments