-
Notifications
You must be signed in to change notification settings - Fork 608
Labels
Description
Feature request: implement java.sql.Connection#setClientInfo
(and ClickHouseDatabaseMetaData#getClientInfoProperties
)
That would allow to pass some useful metadata to database, eg. frontend user that initiated current query, which would be then accessible in query_log. Or customized User-Agent from various parts of backend application without the need to create separate connection pools.
From a quick glance these properties would be useful:
http_referer
http_forwarded_for
client_name
(i.e. HTTP User Agent)log_comment