dry-rb / dry-container

A simple, configurable object container implemented in Ruby
https://dry-rb.org/gems/dry-container
MIT License
335 stars 41 forks source link

Problems with ActiveSupport tagged logging #74

Open solnic opened 3 years ago

solnic commented 3 years ago

A problem reported in this reddit thread

You should know that dry-container doesn't play well with activesupport tagged logging because of use of fibers. (Thread.current is fiber local, not thread local, and they rely on that)

flash-gordon commented 3 years ago

Ugh, are there any examples? I don't quite get how dry-container uses thread local values

solnic commented 3 years ago

@flash-gordon I'll try to reach out to the person from the reddit thread