snowflakedb / gosnowflake

Go Snowflake Driver
Apache License 2.0
292 stars 122 forks source link

Allow caller to set log fields #1094

Closed madisonchamberlain closed 4 months ago

madisonchamberlain commented 5 months ago

Description

This will allow the user to set fields on the logs. This is needed because at the moment, the driver does not tag the requestID, so its extremely difficult to debug issues due to the fact that you cant tell which request a log is associated with. Some examples of useful data we could tag with this method includes: client side requestIDs, server side requestIDs given that gosnowflake.WithRequestID is used, and snowflake query ID given that we are are using the result reuse feature gosnowflake.WithFetchResultByID.

Checklist