r2dbc / r2dbc-proxy

R2DBC Proxying Framework
https://r2dbc.io
Apache License 2.0
145 stars 21 forks source link

Add host and port parameters to ObservationProxyExecutionListener constructor #135

Closed mhalbritter closed 1 year ago

mhalbritter commented 1 year ago

Hello!

I think it would be a good idea to implement an additional constructor on ObservationProxyExecutionListener which directly takes the host and the port instead of the whole R2DBC url.

In my usecase, I have access to the ConnectionFactoryOptions, which allows me to easily get the host and the port, but not the R2DBC url. To workaround this missing constructor, i would have to construct the URL just that the ObservationProxyExecutionListener then parses it again into host and port.