Skip to content
Merged
Prev Previous commit
Next Next commit
rmv unused methods
  • Loading branch information
Vishwesh Bankwar committed Oct 19, 2022
commit ac73f5d34dd3ff035297db6602c67eeab021cbdd
Original file line number Diff line number Diff line change
Expand Up @@ -590,33 +590,6 @@ public void Dispose()
Activity.Current = null;
GC.SuppressFinalize(this);
}

private static void ActivityEnrichmentSetTag(Activity activity, string method, object obj)
{
ActivityEnrichment(activity, method, obj);
activity.SetTag("enriched", "yes");
}

private static void ActivityEnrichment(Activity activity, string method, object obj)
{
switch (method)
{
case "OnStartActivity":
Assert.True(obj is HttpRequestMessage);
break;

case "OnStopActivity":
Assert.True(obj is HttpResponseMessage);
break;

case "OnException":
Assert.True(obj is Exception);
break;

default:
break;
}
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,6 @@ private static async Task CheckEnrichment(Sampler sampler, bool enrichExpected,
Assert.False(enrichWithHttpResponseMessageCalled);
}
}

private static void ActivityEnrichmentCounter(Activity activity, string method, object obj)
{
counter++;
}
}
}
#endif