You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: ASP.NET Core 6+ Browser Injection Bug Fixes
fix: Bypass gRPC requests in the browser injection middleware. Also added a configuration setting to disable ASP.NET Core 6+ browser injection; the setting enables browser injection by default but can be overridden if necessary.
Copy file name to clipboardExpand all lines: src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/AspNetCore6Plus/ResponseCompressionBodyOnWriteWrapper.cs
+14-7
Original file line number
Diff line number
Diff line change
@@ -42,16 +42,23 @@ public AfterWrappedMethodDelegate BeforeWrappedMethod(InstrumentedMethodCall ins
42
42
{
43
43
returnDelegates.GetDelegateFor(onSuccess:()=>
44
44
{
45
-
// Wrap _compressionStream and replace the current value with our wrapped version
46
-
// check whether we've already wrapped the stream so we don't do it twice
// verify that the browser injecting stream wrapper didn't catch an exception and disable itself
73
86
varagentDisabledLogLine=_fixture.AgentLog.TryGetLogLine(AgentLogBase.ErrorLogLinePrefixRegex+"Unexpected exception. Browser injection will be disabled. *?");
0 commit comments