Using OpenTelemetry to trace execution in a Haskell codebase, the author encountered a mysterious issue where unrelated web requests were linked together in a trace. After investigating, they found that the issue was caused by incorrectly initiating spans and using thread-local state to determine the parent span.
















