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
I would like to know which host I'm executing sql on when connecting to a larger cluster (e.g. read node or write node?). Ideally, the logging parameter in the options object would be passed more data, especially including the hostname.
Is your feature request related to a problem? Please describe.
I'd like to log which host was affected with a particular sql query, so I can trace slow response times to a particular host.
Describe the solution you'd like
Currently, we do something like myModel.findOne({... logging: mylogger }), but mylogger only gets (sql, time) as parameters. I'd like for it to get more information, at least host name.
Why should this be in Sequelize
Sequelize knows the database it's connecting to and is already calling out for logging.
Describe alternatives/workarounds you've considered
I've considered reaching around into the internals of the models code, but it just feels gross and like we'll be brittle on upgrades.
Additional context
n/A
Issue Template Checklist
Is this issue dialect-specific?
No. This issue is relevant to Sequelize as a whole.
Yes. This issue only applies to the following dialect(s): XXX, YYY, ZZZ
Would you be willing to resolve this issue by submitting a Pull Request?
Yes, I have the time and I know how to start.
Yes, I have the time but I don't know how to start, I would need guidance.
No, I don't have the time, although I believe I could do it if I had the time...
No, I don't have the time and I wouldn't even know how to start.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Issue Description
I would like to know which host I'm executing sql on when connecting to a larger cluster (e.g. read node or write node?). Ideally, the
logging
parameter in the options object would be passed more data, especially including the hostname.Is your feature request related to a problem? Please describe.
I'd like to log which host was affected with a particular sql query, so I can trace slow response times to a particular host.
Describe the solution you'd like
Currently, we do something like
myModel.findOne({... logging: mylogger })
, but mylogger only gets(sql, time)
as parameters. I'd like for it to get more information, at least host name.Why should this be in Sequelize
Sequelize knows the database it's connecting to and is already calling out for logging.
Describe alternatives/workarounds you've considered
I've considered reaching around into the internals of the models code, but it just feels gross and like we'll be brittle on upgrades.
Additional context
n/A
Issue Template Checklist
Is this issue dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: