Skip to content

Commit c3d410b

Browse files
committed
updated Extension version and API
1 parent dcf2c73 commit c3d410b

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

nr-aspnet/RequestParser.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ public void parse(object request)
8989
string headerValue = headerCollection?.Get(cHeader);
9090
if (headerValue != null)
9191
{
92-
InternalApi.AddCustomParameter(prefix + cHeader, headerValue);
92+
//InternalApi.AddCustomParameter(prefix + cHeader, headerValue);
93+
agent.CurrentTransaction.AddCustomAttribute(prefix + cHeader, headerValue);
94+
9395
}
9496
}
9597
}
@@ -111,12 +113,14 @@ public void parse(object request)
111113
string paramValue = queryStringParamCollection?.Get(cParam);
112114
if (paramValue != null)
113115
{
114-
InternalApi.AddCustomParameter(prefix + cParam, paramValue);
116+
//InternalApi.AddCustomParameter(prefix + cParam, paramValue);
117+
agent.CurrentTransaction.AddCustomAttribute(prefix + cParam, paramValue);
115118
}
116119
paramValue = formParamCollection?.Get(cParam);
117120
if (paramValue != null)
118121
{
119-
InternalApi.AddCustomParameter(prefix + cParam, paramValue);
122+
//InternalApi.AddCustomParameter(prefix + cParam, paramValue);
123+
agent.CurrentTransaction.AddCustomAttribute(prefix + cParam, paramValue);
120124
}
121125
}
122126
}
@@ -132,7 +136,8 @@ public void parse(object request)
132136
{
133137
//Does this work for mulitple cookie values? Code probably needs review
134138
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());
136141
//agent.Logger.Log(Level.Info, "Custom AspNet Extension: Value of HTTP cookie" + cCookie + "]=" + cval);
137142
}
138143
}

nr-aspnet/nr-aspnet.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
55
<RootNamespace>Custom.Providers.Wrapper.AspNet</RootNamespace>
66
<AssemblyName>Custom.Providers.Wrapper.AspNet</AssemblyName>
7-
<Version>1.0.1</Version>
7+
<Version>1.0.2</Version>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="NewRelic.Agent.Extensions" Version="8.21.34" />
11+
<PackageReference Include="NewRelic.Agent.Extensions" Version="8.34.0" />
1212
</ItemGroup>
1313

1414
</Project>

0 commit comments

Comments
 (0)