Open andreasohlund opened 3 years ago
Related to https://github.com/Particular/NServiceBus/issues/3565 which is similar since it results on the headers on the audit message being wrong
Will likely be fixes as we complete https://github.com/Particular/NServiceBus/pull/5936 and update downstreams
That change was reverted for NServiceBus 8.
https://github.com/Particular/NServiceBus/pull/5959 is a spike to show how this bug may be fixed in the future.
Since we trigger on
OnPipelineCompleted
metrics the time it takes the transport to push outgoing messages into the queueing system and acknowledge the message. This means that the metrics can be significantly skewed. We also trigger the counters for message failed and message succeded in the same event so they happen to soon as well in addition to potentially be incorrect should something fail during recoverability or when the transport completes the transport transactions.