-
Notifications
You must be signed in to change notification settings - Fork 67
AZURE SERVICEBUS - Current Activity is prematurely stopped. Should be stopped once all observers have been notified! #1038
Comments
thanks for submitting it! you are right. Here is the code responsible for it during request tracking too: |
For now until this is resolved, one way to get around this, is to subscribe the custom observers that listen on One of the problem with this workaround is that, the current activity will not have the duration. The duration will need to be calculated manually by the client. |
We'll fix it in 2.9. Could you please share your scenario where you need an additional subscriber? |
We are making use of TrackEvent so that we can pass in properties other than the ones passed by default with Microsoft.Azure.ServiceBus which makes use of the Trace api. Just a different way of tracking I guess... |
can you call TrackEvent during message processing, not after it or you rely on some payloads that ServiceBus sends in Stop events? |
I rely on some payloads that ServiceBus sends in Stop events |
Repro Steps
"Microsoft.Azure.ServiceBus"
Actual Behavior
Activity.Current is null, because it is stopped on ServiceBusDiagnosticsEventHandler line 67
Expected Behavior
Activity.Current to not be null, until all observers have been notified.
Version Info
SDK Version : 2.7.2
.NET Version : netstandard2.0
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : visual studio
OS : Windows
Hosting Info (IIS/Azure WebApps/ etc) : Console application
The text was updated successfully, but these errors were encountered: