Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TraceID string
View Source
var TransactionID string
View Source
var TriggerClassName string
Functions ¶
Types ¶
type Data ¶
type Data interface{}
type MonitoringDataWrapper ¶
type MonitoringDataWrapper struct {
DataModelVersion string `json:"dataModelVersion"`
Type string `json:"type"`
Data Data `json:"data"`
APIKey string `json:"apiKey"`
Compressed bool `json:"compressed"`
}
MonitoringDataWrapper defines the structure that given dataformat follows by Thundra. In here data could be a trace, metric or log data.
func WrapMonitoringData ¶
func WrapMonitoringData(data interface{}, dataType string) MonitoringDataWrapper
type Plugin ¶
type Plugin interface {
BeforeExecution(ctx context.Context, request json.RawMessage) context.Context
AfterExecution(ctx context.Context, request json.RawMessage, response interface{}, err interface{}) ([]MonitoringDataWrapper, context.Context)
IsEnabled() bool
Order() uint8
}
Plugin interface provides necessary methods for the plugins to be used in thundra agent
Source Files
¶
- plugin.go
Click to show internal directories.
Click to hide internal directories.