mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
change: set SendGA4Event timeout to 10s
This commit is contained in:
+2
-2
@@ -64,7 +64,7 @@ func NewGA4Client(measurementID, apiSecret string, debug ...bool) *GA4Client {
|
|||||||
apiSecret: apiSecret,
|
apiSecret: apiSecret,
|
||||||
userID: userID,
|
userID: userID,
|
||||||
httpClient: &http.Client{
|
httpClient: &http.Client{
|
||||||
Timeout: 5 * time.Second,
|
Timeout: 10 * time.Second,
|
||||||
},
|
},
|
||||||
debug: dbg,
|
debug: dbg,
|
||||||
}
|
}
|
||||||
@@ -206,6 +206,6 @@ func SendGA4Event(name string, params map[string]interface{}) {
|
|||||||
}
|
}
|
||||||
err := ga4Client.SendEvent(event)
|
err := ga4Client.SendEvent(event)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn().Err(err).Msg("send GA4 event failed")
|
log.Debug().Err(err).Msg("send GA4 event failed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v5.0.0-250727
|
v5.0.0-250728
|
||||||
|
|||||||
Reference in New Issue
Block a user