Documentation ¶
Index ¶
- Constants
- func AtomicTransaction(txnType string, name string, status string, duration time.Duration, ...)
- func CalClient() io.Client
- func ConfigDump()
- func Event(eventType string, name string, status string, data []byte)
- func GetCalDropCount() uint64
- func InitWithConfig(conf *config.Config)
- func Initialize(args ...interface{}) (err error)
- func IsEnabled() bool
- func LogAtomicTransaction(txnType, eventName, status string, duration time.Duration, ...)
- func LogDebug() bool
- func LogError() bool
- func LogEvent(eventType, eventName, status string, eventData map[string]interface{})
- func LogInfo() bool
- func LogInfoPercent() bool
- func LogVerbose() bool
- func LogWarning() bool
- func StateLog(name string, data []byte)
Constants ¶
View Source
const ( StatusSuccess string = "0" StatusFatal string = "1" StatusSystemFailure string = "1" // "system failure that lead to a failure in processing" StatusError string = "2" StatusInputError string = "2" // "input errors that lead to failure in processing" StatusWarning string = "3" StatusUnknown string = "U" )
CAL message Status field values
View Source
const ( TxnTypeAPI string = "API" // root Txn for mid-tier service TxnTypeRAPI string = "RAPI" // root Txn for mid-tier service TxnTypeAccept string = "ACCEPT" TxnTypeURL string = "URL" // root Txn for web service TxnTypeConnect string = "CONNECT" // nested Txn: connecting to svc TxnTypeSend string = "SEND" // nested Txn: sending req to svc TxnTypeRecv string = "RECV" // nested Txn: reading resp from svc TxnTypeCall string = "CALL" // nested svc call (CONNECT+SEND+RECV) TxnTypeDispatch string = "DISPATCH" // nested Txn: handling request TxnTypeClose string = "CLOSE" )
some well known TxnType values, but anything is allowed
Variables ¶
This section is empty.
Functions ¶
func AtomicTransaction ¶
func ConfigDump ¶
func ConfigDump()
func GetCalDropCount ¶
func GetCalDropCount() uint64
func InitWithConfig ¶
func Initialize ¶
func Initialize(args ...interface{}) (err error)
func LogAtomicTransaction ¶
func LogEvent ¶
SendEvent logs an event of eventType with a sub-classification of eventName. The event may optionally contain extra eventData.
func LogInfoPercent ¶
func LogInfoPercent() bool
func LogVerbose ¶
func LogVerbose() bool
func LogWarning ¶
func LogWarning() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.