ydb-nodejs-sdk
ydb-nodejs-sdk copied to clipboard
feat: Improve logging, so it can be used to collect information for SLO Workload
Feature Request
Describe the Problem
Currently, logging is performed with simple strings, without context, and replacing the logger with your own is not possible everywhere.
Describe Preferred Solution
It would be more convenient if the logger passed in the driver constructor was used everywhere. And in logging method you could pass the data structure with key parameters - for example, query, execution time, result code, or error, etc. This format of methods supported by pino js and allows more efficient logs analizes, e.g. using mezmo.com
partially duplicates 316
done