Skip to content

Commit

Permalink
Revert previous commit, make a much simpler change in MEL wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Jun 18, 2024
1 parent 83cf2d7 commit 63cd706
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ public class MicrosoftLoggingWrapper : IWrapper

public CanWrapResponse CanWrap(InstrumentedMethodInfo methodInfo)
{
if (!LogProviders.KnownMELProviderEnabled)
{
return new CanWrapResponse(WrapperName.Equals(methodInfo.RequestedWrapperName));
}
return new CanWrapResponse(false);
}

public AfterWrappedMethodDelegate BeforeWrappedMethod(InstrumentedMethodCall instrumentedMethodCall, IAgent agent, ITransaction transaction)
{
if (LogProviders.KnownMELProviderEnabled)
return Delegates.NoOp;

var melLoggerInstance = (MEL.ILogger)instrumentedMethodCall.MethodCall.InvocationTarget;

// There is no LogEvent equivalent in MSE Logging
Expand Down

0 comments on commit 63cd706

Please sign in to comment.