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
Copy file name to clipboardExpand all lines: tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Logging/NLog/LogsInjection/LogsInjectionHelper.cs
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,15 +27,20 @@ internal static class LogsInjectionHelper<TTarget>
27
27
28
28
staticLogsInjectionHelper()
29
29
{
30
+
// Use typeof(TTarget).Assembly to get the NLog assembly safely, avoiding Type.GetType()
31
+
// which can throw FileLoadException even with throwOnError: false when there are
0 commit comments