You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We can open a client, but we cannot close the session. We have to work around it providing our own context manager which accesses a private variable in PrometheusConnect:
@4n4nd thanks! I guess it still leaves it to us to close the session, but it's for sure better than accessing the private variable. Do you think there's value in providing a close method that closes the session (may it be provided or not), and maybe even the context manager methods?
Is your feature request related to a problem? Please describe.
We can open a client, but we cannot close the session. We have to work around it providing our own context manager which accesses a private variable in
PrometheusConnect
:Describe the solution you'd like
Would be nice to have a close method, or even also implement context manager.
Describe alternatives you've considered
Not sure if there are any. We need to be able to not leak connections.
The text was updated successfully, but these errors were encountered: