upgrade deps; rewrite smtp session
This commit is contained in:
13
vendor/github.com/getsentry/sentry-go/sentry.go
generated
vendored
13
vendor/github.com/getsentry/sentry-go/sentry.go
generated
vendored
@@ -5,16 +5,13 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Version is the version of the SDK.
|
||||
const Version = "0.13.0"
|
||||
// The version of the SDK.
|
||||
const SDKVersion = "0.27.0"
|
||||
|
||||
// apiVersion is the minimum version of the Sentry API compatible with the
|
||||
// sentry-go SDK.
|
||||
const apiVersion = "7"
|
||||
|
||||
// userAgent is the User-Agent of outgoing HTTP requests.
|
||||
const userAgent = "sentry-go/" + Version
|
||||
|
||||
// Init initializes the SDK with options. The returned error is non-nil if
|
||||
// options is invalid, for instance if a malformed DSN is provided.
|
||||
func Init(options ClientOptions) error {
|
||||
@@ -48,6 +45,12 @@ func CaptureException(exception error) *EventID {
|
||||
return hub.CaptureException(exception)
|
||||
}
|
||||
|
||||
// CaptureCheckIn captures a (cron) monitor check-in.
|
||||
func CaptureCheckIn(checkIn *CheckIn, monitorConfig *MonitorConfig) *EventID {
|
||||
hub := CurrentHub()
|
||||
return hub.CaptureCheckIn(checkIn, monitorConfig)
|
||||
}
|
||||
|
||||
// CaptureEvent captures an event on the currently active client if any.
|
||||
//
|
||||
// The event must already be assembled. Typically code would instead use
|
||||
|
||||
Reference in New Issue
Block a user