private void AddActivitySource(ActivitySource source)
 {
     if (_nameFilter(source.Name))
     {
         source.AddListener(this);
     }
     else
     {
         source.RemoveListener(this);
     }
 }
Ejemplo n.º 2
0
 static void SubscribeAzureClientForwarder(this ActivitySource source, string originalActivityName)
 {
     source.AddListener(new AzureClientForwarder(originalActivityName));
 }