Documentation ¶
Index ¶
Constants ¶
View Source
const XRayTagNameClientIP = "xray_client_ip"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XRaySegment ¶
type XRaySegment struct { // The 3-tuple (name, segment type, account ID) uniquely defines // an X-Ray service. The Veneur X-Ray sink uses the default type (segment) // for all segments, so for a deployment that only uses a single AWS account ID, // the name field will uniquely define the service (and be used as the service name) Name string `json:"name"` ID string `json:"id"` TraceID string `json:"trace_id"` ParentID string `json:"parent_id,omitempty"` StartTime float64 `json:"start_time"` EndTime float64 `json:"end_time"` Namespace string `json:"namespace"` Error bool `json:"error"` Annotations map[string]string `json:"annotations,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` HTTP XRaySegmentHTTP `json:"http,omitempty"` }
XRaySegment is a trace segment for X-Ray as defined by: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html
type XRaySegmentHTTP ¶
type XRaySegmentHTTP struct { Request XRaySegmentHTTPRequest `json:"request,omitempty"` Response XRaySegmentHTTPResponse `json:"response,omitempty"` }
type XRaySegmentHTTPRequest ¶
type XRaySegmentHTTPResponse ¶
type XRaySegmentHTTPResponse struct {
Status int `json:"status,omitempty"`
}
type XRaySpanSink ¶
type XRaySpanSink struct {
// contains filtered or unexported fields
}
XRaySpanSink is a sink for spans to be sent to AWS X-Ray.
func NewXRaySpanSink ¶
func NewXRaySpanSink(daemonAddr string, sampleRatePercentage int, commonTags map[string]string, annotationTags []string, log *logrus.Logger) (*XRaySpanSink, error)
NewXRaySpanSink creates a new instance of a XRaySpanSink.
func (*XRaySpanSink) Flush ¶
func (x *XRaySpanSink) Flush()
Flush doesn't need to do anything, so we emit metrics instead.
Click to show internal directories.
Click to hide internal directories.