Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogData ¶
type LogData struct {
Results *cloudwatchlogs.GetQueryResultsOutput
}
type Segment ¶
type Segment struct { // Required fields // Name string `json:"name"` ID string `json:"id"` StartTime Time `json:"start_time"` EndTime Time `json:"end_time"` TraceID string `json:"trace_id"` // Optional fields // Service map[string]any `json:"service,omitempty"` User map[string]any `json:"user,omitempty"` Origin string `json:"origin,omitempty"` ParentID string `json:"parent_id,omitempty"` HTTP SegmentHTTP `json:"http,omitempty"` Aws SegmentAWS `json:"aws,omitempty"` Error bool `json:"error,omitempty"` Throttle bool `json:"throttle,omitempty"` Fault bool `json:"fault,omitempty"` Cause any `json:"cause,omitempty"` Annotations map[string]any `json:"annotations,omitempty"` Metadata map[string]any `json:"metadata,omitempty"` SubSegments []SubSegment `json:"subsegments,omitempty"` // Not part of the schema but found in practice SQL mo.Option[SQL] `json:"sql,omitempty"` }
type SegmentAWS ¶
type SegmentHTTP ¶
type SegmentHTTP struct { Request SegmentHTTPRequest `json:"request,omitempty"` Response SegmentHTTPResponse `json:"response,omitempty"` }
type SegmentHTTPRequest ¶
type SegmentHTTPResponse ¶
type SubSegment ¶
type SubSegment struct { // Required fields // Name string `json:"name"` ID string `json:"id"` StartTime Time `json:"start_time"` EndTime Time `json:"end_time"` InProgress bool `json:"in_progress"` TraceID string `json:"trace_id"` ParentID string `json:"parent_id"` // Optional fields // Namespace string `json:"namespace,omitempty"` HTTP SegmentHTTP `json:"http,omitempty"` Aws SegmentAWS `json:"aws,omitempty"` Error bool `json:"error,omitempty"` Throttle bool `json:"throttle,omitempty"` Fault bool `json:"fault,omitempty"` Cause any `json:"cause,omitempty"` Annotations map[string]any `json:"annotations,omitempty"` Metadata map[string]any `json:"metadata,omitempty"` SubSegments []SubSegment `json:"subsegments,omitempty"` // Not part of the schema but found in practice SQL mo.Option[SQL] `json:"sql,omitempty"` }
type SummaryData ¶
type SummaryData struct { NextToken mo.Option[string] Summaries []TraceSummary }
func FetchTraceSummaries ¶
type Time ¶
func (*Time) UnmarshalJSON ¶
type TraceDetails ¶
func FetchTraceDetails ¶
func FetchTraceDetails(ctx context.Context, id TraceID) (*TraceDetails, error)
func (TraceDetails) String ¶
func (t TraceDetails) String() string
type TraceSummary ¶
type TraceSummary struct {
Data types.TraceSummary
}
func (TraceSummary) FilterValue ¶
func (t TraceSummary) FilterValue() string
func (TraceSummary) HasError ¶
func (t TraceSummary) HasError() bool
func (TraceSummary) HasFault ¶
func (t TraceSummary) HasFault() bool
func (TraceSummary) ID ¶
func (t TraceSummary) ID() string
func (TraceSummary) Path ¶
func (t TraceSummary) Path() string
func (TraceSummary) Title ¶
func (t TraceSummary) Title() string
Click to show internal directories.
Click to hide internal directories.