Documentation ¶
Overview ¶
Package sdmon is the singleton for internal monitor to cloud operation
Index ¶
- Constants
- func Close()
- func Init(googleProjectID, serviceName, googleServiceAccountJSON string)
- func Log(severity Severity, payload interface{})
- func LogCritical(payload interface{})
- func LogCriticalf(s string, v ...interface{})
- func LogDebug(payload interface{})
- func LogDebugf(s string, v ...interface{})
- func LogError(payload interface{})
- func LogErrorf(s string, v ...interface{})
- func LogInfo(payload interface{})
- func LogInfof(s string, v ...interface{})
- func LogWarning(payload interface{})
- func LogWarningf(s string, v ...interface{})
- func Logf(severity Severity, s string, v ...interface{})
- func Report(err interface{}, r *http.Request, user string, stack []byte)
- func Reportf(format string, v ...interface{})
- func Trace(samplingProbability float64) func(h http.Handler) http.Handler
- type Severity
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(googleProjectID, serviceName, googleServiceAccountJSON string)
Init inits stack driver monitor
func Log ¶
func Log(severity Severity, payload interface{})
Log logs payload, payload can be string or can marshal into json
func LogCritical ¶
func LogCritical(payload interface{})
LogCritical logs payload with critical severity
func LogCriticalf ¶
func LogCriticalf(s string, v ...interface{})
LogCriticalf logs string with critical severity
func LogDebugf ¶
func LogDebugf(s string, v ...interface{})
LogDebugf logs string with debug severity
func LogErrorf ¶
func LogErrorf(s string, v ...interface{})
LogErrorf logs string with error severity
func LogWarning ¶
func LogWarning(payload interface{})
LogWarning logs payload with warning severity
func LogWarningf ¶
func LogWarningf(s string, v ...interface{})
LogWarningf logs string with warning severity
Types ¶
Click to show internal directories.
Click to hide internal directories.