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
Describe the bug
When producing an event, System.InvalidOperationException: '"Can not start an Activity that was already started"' is thrown (and immediately swallowed) by System.Diagnostics.DiagnosticSource.dll!System.Diagnostics.Activity.NotifyError(System.Exception exception).
The reason is that in BaseProducer.Produce, we explicitly call act?.Start(), but the activity has already been started by the previous line's call to ProducerActivity.Start.
Describe the bug
When producing an event,
System.InvalidOperationException: '"Can not start an Activity that was already started"'
is thrown (and immediately swallowed) bySystem.Diagnostics.DiagnosticSource.dll!System.Diagnostics.Activity.NotifyError(System.Exception exception)
.The reason is that in BaseProducer.Produce, we explicitly call
act?.Start()
, but the activity has already been started by the previous line's call to ProducerActivity.Start.eventuous/src/Core/src/Eventuous.Producers/BaseProducer.cs
Lines 46 to 47 in b72c9c0
To Reproduce
Steps to reproduce the behavior:
System.InvalidOperationException
in Visual Studio's Exception SettingsRabbitMqProducer
Expected behavior
No exception should be thrown.
I can provide a PR if you want. As far as I can understand, simply changing
eventuous/src/Core/src/Eventuous.Producers/BaseProducer.cs
Line 47 in b72c9c0
return (act, new[] { producedMessage });
should be enough.The text was updated successfully, but these errors were encountered: