Question: ActivitySource behavior with multiple subscribed ActivityListeners #41306
Labels
area-System.Diagnostics.Tracing
question
Answer questions and provide assistance, not an issue with source code or documentation.
Description
When an
Activity
is started with the newActivitySource
API if any subscribedActivityListener
responds with anything higher thanActivityDataRequest.None
then all subscribedActivityListener.ActivityStarted/Stopped
events are fired.For example:
This code produces this output:
Even though
listenerA
respondsActivityDataRequest.None
it'sActivityStarted/Stopped
events are fired. Is this the correct behavior? It does not seem intuitive.@cijothomas
The text was updated successfully, but these errors were encountered: