This is pretty dangerous, we're forcing knowledge of an implementation detail (the current request ID is stored in `Thread.current['request-id']`) into components outside of the CaptureRequestIdMiddleware. It should be wrapped in some simple interface, e.g.:

```ruby

class CurrentRequestId
  def self.set(value)
    Thread.current['request-id'] = value
  end

  def self.get
    Thread.current['request-'id]
  end
end
```