Documentation ¶
Index ¶
- Constants
- func Create(server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, ...) (sinks.SpanSink, error)
- func MigrateConfig(conf *veneur.Config)
- func ParseConfig(name string, config interface{}) (veneur.SpanSinkConfig, error)
- type XRaySegment
- type XRaySegmentHTTP
- type XRaySegmentHTTPRequest
- type XRaySegmentHTTPResponse
- type XRaySinkConfig
- type XRaySpanSink
Constants ¶
View Source
const SpanTagNameHttpMethod = "http.method"
View Source
const SpanTagNameHttpStatusCode = "http.status_code"
View Source
const SpanTagNameHttpUrl = "http.url"
View Source
const XRayTagNameClientIP = "xray_client_ip"
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v14.2.0
func Create( server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, sinkConfig veneur.SpanSinkConfig, ) (sinks.SpanSink, error)
Create creates a new instance of a XRaySpanSink.
func MigrateConfig ¶ added in v14.2.0
func MigrateConfig(conf *veneur.Config)
TODO(yeogai): Remove this once the old configuration format has been removed.
func ParseConfig ¶ added in v14.2.0
ParseConfig decodes the map config for an X-Ray sink into a XRaySinkConfig struct.
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 XRaySinkConfig ¶ added in v14.2.0
type XRaySpanSink ¶
type XRaySpanSink struct {
// contains filtered or unexported fields
}
XRaySpanSink is a sink for spans to be sent to AWS X-Ray.
func (*XRaySpanSink) CalculateTraceID ¶
func (x *XRaySpanSink) CalculateTraceID(ssfSpan *ssf.SSFSpan) string
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.