Documentation
¶
Index ¶
- func NewSpan(name string) platform.Span
- type Client
- type Config
- type Span
- func (s *Span) CanGetSummary() bool
- func (s *Span) Finish()
- func (s *Span) FinishWait()
- func (s *Span) GetSummary() []string
- func (s *Span) NewChild(name string) platform.Span
- func (s *Span) OutputSummary()
- func (s *Span) SetEnvironment(_ string) platform.Span
- func (s *Span) SetError(err error) platform.Span
- func (s *Span) SetLabel(_, _ string) platform.Span
- func (s *Span) SetResponse(status int) platform.Span
- func (s *Span) SetSQL(sql string) platform.Span
- func (s *Span) SetServiceName(_ string) platform.Span
- func (s *Span) SetUser(user string) platform.Span
- func (s *Span) SetVersion(_ string) platform.Span
- func (s *Span) TraceID() string
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is struct of local debugging client for tracing.
type Span ¶
type Span struct { Name string StartTime time.Time EndTime time.Time SQL string Error string // contains filtered or unexported fields }
Span is wrapper struct of xray.Segment.
func (*Span) CanGetSummary ¶
CanGetSummary determines Span can call GetSummary().
func (*Span) GetSummary ¶
GetSummary returns trace duration data.
func (*Span) OutputSummary ¶
func (s *Span) OutputSummary()
OutputSummary print trace duration data.
func (*Span) SetEnvironment ¶
SetEnvironment is dummy method.
func (*Span) SetResponse ¶
SetResponse is dummy method.
func (*Span) SetServiceName ¶
SetServiceName is dummy method.
func (*Span) SetVersion ¶
SetVersion is dummy method.
Click to show internal directories.
Click to hide internal directories.