Commit 0389a9a 1 parent fd31f5f commit 0389a9a Copy full SHA for 0389a9a
File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ type authRequestClientEnvironment struct {
147
147
Os string `json:"OS"`
148
148
OsVersion string `json:"OS_VERSION"`
149
149
OCSPMode string `json:"OCSP_MODE"`
150
+ GoVersion string `json:"GO_VERSION"`
150
151
}
152
+
151
153
type authRequestData struct {
152
154
ClientAppID string `json:"CLIENT_APP_ID"`
153
155
ClientAppVersion string `json:"CLIENT_APP_VERSION"`
@@ -315,6 +317,7 @@ func authenticate(
315
317
Os : operatingSystem ,
316
318
OsVersion : platform ,
317
319
OCSPMode : sc .cfg .ocspMode (),
320
+ GoVersion : runtime .Version (),
318
321
}
319
322
320
323
sessionParameters := make (map [string ]interface {})
Original file line number Diff line number Diff line change 8
8
"fmt"
9
9
"io"
10
10
"os"
11
+ "runtime"
11
12
"strconv"
12
13
"strings"
13
14
"time"
@@ -65,6 +66,7 @@ func (sc *snowflakeConn) connectionTelemetry(cfg *Config) {
65
66
sourceKey : telemetrySource ,
66
67
driverTypeKey : "Go" ,
67
68
driverVersionKey : SnowflakeGoDriverVersion ,
69
+ golangVersionKey : runtime .Version (),
68
70
},
69
71
Timestamp : time .Now ().UnixNano () / int64 (time .Millisecond ),
70
72
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const (
23
23
queryIDKey = "QueryID"
24
24
driverTypeKey = "DriverType"
25
25
driverVersionKey = "DriverVersion"
26
+ golangVersionKey = "GolangVersion"
26
27
sqlStateKey = "SQLState"
27
28
reasonKey = "reason"
28
29
errorNumberKey = "ErrorNumber"
You can’t perform that action at this time.
0 commit comments