There is any way to connect a cowboy middleware with a plug?

There is any way to connect a cowboy middleware into a plug? I have a legacy Elixir application and I need to add NewRelic instrumentation into the code.
The problem is, the application is done directly with cowboy, it’s plain cowboy, there is no plug at the application. And the NewRelic APM expects the a Plug adapter.
So my idea would be to create a new cowboy middleware and then connect it with a plug that will act as a simple proxy to be able to instrument the code.