Versions in this module Expand all Collapse all v1 v1.4.3 Dec 23, 2019 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 WrapDoer(wrapped client.Doer) client.Doer + func WrapTransport(rt http.RoundTripper) http.RoundTripper + type Cause struct + Exceptions []*Exception + ID string + WorkingDirectory string + 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 + 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) + func (s *Segment) SubmitInProgress() + type StackEntry struct + Label string + Line int + Path string + type TestClientExpectation struct + func NewTestClientExpectation() *TestClientExpectation + func (c *TestClientExpectation) Expect(fn string, e interface{}) + func (c *TestClientExpectation) ExpectNTimes(n int, fn string, e interface{}) + func (c *TestClientExpectation) Expectation(fn string) interface{} + func (c *TestClientExpectation) MetExpectations() error + type TestNetConn struct + func NewTestNetConn() *TestNetConn + func (c *TestNetConn) Close() error + func (c *TestNetConn) LocalAddr() net.Addr + func (c *TestNetConn) Read(b []byte) (n int, err error) + func (c *TestNetConn) RemoteAddr() net.Addr + func (c *TestNetConn) SetDeadline(t time.Time) error + func (c *TestNetConn) SetReadDeadline(t time.Time) error + func (c *TestNetConn) SetWriteDeadline(t time.Time) error + func (c *TestNetConn) Write(b []byte) (n int, err error) Incompatible versions in this module v2.2.5+incompatible Nov 1, 2020