NATS .NET v3.1.1-preview.1
Pre-releasePreview on the 3.1 patch line with one fix. Receive activities were created on the connection's read loop and left in Activity.Current, so a message without its own trace context took the previous message's activity as a parent; unrelated messages chained together and the chain stayed reachable for the life of the connection. Receive activities are now parented only by trace context carried in the message, and activities that were never ended before (messages evicted from a full subscription channel, messages that never reach a consumer) are ended. Worth testing if you run with OpenTelemetry tracing enabled.
- Fix receive activity leak when tracing is enabled (#1229)
Adjacent issues in the same receive path are not covered here: the remainder of #1227, plus #1228, #1230, #1232 and #1233.
Thanks to @ani-philips for reporting the leak (#1225).
Full Changelog: v3.1.0...v3.1.1-preview.1