Documentation ¶
Index ¶
- 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(env string) platform.Span
- func (s *Span) SetError(err error) platform.Span
- func (s *Span) SetLabel(key, value string) platform.Span
- func (s *Span) SetResponse(status int) platform.Span
- func (s *Span) SetSQL(sql string) platform.Span
- func (s *Span) SetServiceName(name string) platform.Span
- func (s *Span) SetUser(user string) platform.Span
- func (s *Span) SetVersion(ver string) platform.Span
- func (s *Span) TraceID() string
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is struct of AWS X-Ray client for tracing.
type Config ¶
type Config struct { // AWS setting AccessKey string SecretKey string Region string Endpoint string Filename string Profile string // Checkpoint setting CheckpointSize int CheckpointInterval time.Duration // Sampling rates SamplingFraction float64 SamplingQPS float64 }
Config contains auth and checkpoint setting for AWS X-Ray.
type Span ¶
Span is wrapper struct of xray.Segment.
func (*Span) CanGetSummary ¶
CanGetSummary determines Span can call GetSummary().
func (*Span) FinishWait ¶
func (s *Span) FinishWait()
FinishWait sends trace data to xray asynchronously. (dummy method for xray)
func (*Span) SetEnvironment ¶
SetEnvironment sets environment data into span.
func (*Span) SetResponse ¶
SetResponse sets HTTP response status into span.
func (*Span) SetServiceName ¶
SetServiceName sets service name into span.
func (*Span) SetVersion ¶
SetVersion sets version data into span.
Click to show internal directories.
Click to hide internal directories.