Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StackFrame ¶
type StackFrame struct { // The file name where the error occurred. File string `json:"file,omitempty"` // The name of the method where the error occurred. Function string `json:"function,omitempty"` // The line number in the file where the error occurred. Line int32 `json:"line,omitempty"` // The column number in the line where the error occurred. Column int32 `json:"column,omitempty"` }
type TelemetryEvent ¶
type TelemetryEvent struct { // The session ID associated with the event. The session id is short-lived and not persisted. // It is only used to link events together (as there might be a relationship between them). SessionID string `json:"session_id,omitempty"` // Timestamp when the event occurred. Timestamp *time.Time `json:"timestamp,omitempty"` // The kind of event. Kind TelemetryEventKind `json:"kind,omitempty"` // The name of the event. Name string `json:"name,omitempty"` // A message associated with the event. Message string `json:"message,omitempty"` // Any values associated with the event. Values map[string]string `json:"values,omitempty"` // If an error, the stack trace associated with the event. StackTrace []*StackFrame `json:"stack_trace,omitempty"` // A set of tags associated with the event. Tags []string `json:"tags,omitempty"` }
type TelemetryEventClient ¶
type TelemetryEventClient struct {
// contains filtered or unexported fields
}
func NewTelemetryEventClient ¶
func NewTelemetryEventClient(httpClient *http.Client, baseURL string) *TelemetryEventClient
func (*TelemetryEventClient) ReportEvent ¶
func (c *TelemetryEventClient) ReportEvent(ctx context.Context, event *TelemetryEvent) error
type TelemetryEventKind ¶
type TelemetryEventKind string
TelemetryEventKind represents the kind of event.
const ( // The event is informational. TelemetryEventKindInfo TelemetryEventKind = "info" // The event is a warning. TelemetryEventKindWarning TelemetryEventKind = "warning" // The event is an error. TelemetryEventKindError TelemetryEventKind = "error" )
Click to show internal directories.
Click to hide internal directories.