Daniel Cazzulino
Daniel Cazzulino
Given that the `Activity.Current` is stored in an `AsyncLocal`, wouldn't just setting it before processing be enough? See https://github.com/dotnet/runtime/blob/main/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.cs#L65
I assume doing ExecutionContext.Capture and restoring it later is also not an option, especially if things might not even land in the same process?
  :test_tube: Details on Ubuntu 24.04.3 LTS from [dotnet-retest](https://github.com/devlooped/dotnet-retest) v1.0.0 on .NET 10.0.0 with [:purple_heart:](https://github.com/sponsors/devlooped) by @devlooped
  :test_tube: Details on Microsoft Windows 10.0.26100 from [dotnet-retest](https://github.com/devlooped/dotnet-retest) v1.0.0 on .NET 10.0.0 with [:purple_heart:](https://github.com/sponsors/devlooped) by @devlooped
  :test_tube: Details on Ubuntu 24.04.2 LTS from [dotnet-retest](https://github.com/devlooped/dotnet-retest) v0.7.1 on .NET 8.0.16 with [:purple_heart:](https://github.com/sponsors/devlooped) by @devlooped
Hehe, 7 years in the making: https://github.com/ErikEJ/dnx 😅
  :test_tube: Details on Ubuntu 24.04.2 LTS from [dotnet-retest](https://github.com/devlooped/dotnet-retest) v0.7.1 on .NET 8.0.15 with [:purple_heart:](https://github.com/sponsors/devlooped) by @devlooped
  :test_tube: Details on Ubuntu 24.04.2 LTS from [dotnet-retest](https://github.com/devlooped/dotnet-retest) v0.7.1 on .NET 8.0.15 with [:purple_heart:](https://github.com/sponsors/devlooped) by @devlooped
      :test_tube: Details on Ubuntu 24.04.2 LTS :test_tube: Details on macOS Unix 14.7.5 :test_tube: Details on Microsoft Windows 10.0.20348...
  :test_tube: Details on Ubuntu 24.04.3 LTS from [dotnet-retest](https://github.com/devlooped/dotnet-retest) v1.0.0 on .NET 10.0.0 with [:purple_heart:](https://github.com/sponsors/devlooped) by @devlooped