Versions in this module Expand all Collapse all v1 v1.2.0 Apr 17, 2017 Changes in this version + func New(service, daemon string) (goa.Middleware, error) + func NewID() string + func NewTraceID() string + func WithSegment(ctx context.Context, s *Segment) context.Context + func WrapTransport(rt http.RoundTripper) http.RoundTripper + type Cause struct + Exceptions []*Exception + ID string + WorkingDirectory string + type Doer interface + Do func(*http.Request) (*http.Response, error) + func WrapClient(ctx context.Context, c *http.Client) Doer + type Exception struct + Message string + Stack []*StackEntry + type HTTP struct + Request *Request + Response *Response + type Request struct + ClientIP string + ContentLength int64 + Method string + URL string + UserAgent string + type Response struct + ContentLength int64 + Status int + type Segment struct + Annotations map[string]interface{} + Cause *Cause + EndTime float64 + Error bool + Fault bool + HTTP *HTTP + ID string + InProgress bool + Metadata map[string]map[string]interface{} + Name string + Namespace string + Parent *Segment + ParentID string + StartTime float64 + Subsegments []*Segment + Throttle bool + TraceID string + Type string + func ContextSegment(ctx context.Context) *Segment + func NewSegment(name, traceID, spanID string, conn net.Conn) *Segment + func (s *Segment) AddAnnotation(key string, value string) + func (s *Segment) AddBoolAnnotation(key string, value bool) + func (s *Segment) AddBoolMetadata(key string, value bool) + func (s *Segment) AddInt64Annotation(key string, value int64) + func (s *Segment) AddInt64Metadata(key string, value int64) + func (s *Segment) AddMetadata(key string, value string) + func (s *Segment) Capture(name string, fn func()) + func (s *Segment) Close() + func (s *Segment) NewSubsegment(name string) *Segment + func (s *Segment) RecordContextResponse(ctx context.Context) + func (s *Segment) RecordError(e error) + func (s *Segment) RecordRequest(req *http.Request, namespace string) + func (s *Segment) RecordResponse(resp *http.Response) + type StackEntry struct + Label string + Line int + Path string