Documentation ¶
Index ¶
Constants ¶
View Source
const ( AttributeRefType = "refType" AttributeParentService = "parent.service" AttributeParentInstance = "parent.service.instance" AttributeParentEndpoint = "parent.endpoint" AttributeSkywalkingSpanID = "sw8.span_id" AttributeSkywalkingTraceID = "sw8.trace_id" AttributeSkywalkingSegmentID = "sw8.segment_id" AttributeSkywalkingParentSpanID = "sw8.parent_span_id" AttributeSkywalkingParentSegmentID = "sw8.parent_segment_id" AttributeNetworkAddressUsedAtPeer = "network.AddressUsedAtPeer" )
Variables ¶
View Source
var ( RefType_name = map[int32]string{ 0: "CrossProcess", 1: "CrossThread", } RefType_map = map[string]RefType{ "CrossProcess": RefType_CrossProcess, "CrossThread": RefType_CrossThread, } )
Enum value maps for RefType.
View Source
var ( SpanLayer_map = map[string]SpanLayer{ "Unknown": SpanLayer_Unknown, "Database": SpanLayer_Database, "RPCFramework": SpanLayer_RPCFramework, "Http": SpanLayer_Http, "MQ": SpanLayer_MQ, "Cache": SpanLayer_Cache, "FAAS": SpanLayer_FAAS, } )
Enum value maps for SpanLayer.
View Source
var ( SpanType_map = map[string]SpanType{ "Entry": SpanType_Entry, "Exit": SpanType_Exit, "Local": SpanType_Local, } )
Enum value maps for SpanType.
Functions ¶
Types ¶
type RefType ¶
type RefType int32
Type of the reference
const ( // Map to the reference targeting the segment in another OS process. RefType_CrossProcess RefType = 0 // Map to the reference targeting the segment in the same process of the current one, just across thread. // This is only used when the coding language has the thread concept. RefType_CrossThread RefType = 1 )
func (*RefType) UnmarshalJSON ¶
type SkywalkingApi ¶
type SkywalkingApi struct {
Address string
}
func NewSkywalkingApi ¶
func NewSkywalkingApi(address string) *SkywalkingApi
type SkywalkingData ¶
type SkywalkingData struct {
Trace SkywalkingTrace `json:"trace"`
}
type SkywalkingKeyValue ¶
type SkywalkingLogEntity ¶
type SkywalkingLogEntity struct { Time int64 `json:"time"` Data []SkywalkingKeyValue `json:"data"` }
type SkywalkingRef ¶
type SkywalkingResponse ¶
type SkywalkingResponse struct {
Data SkywalkingData `json:"data"`
}
type SkywalkingSpan ¶
type SkywalkingSpan struct { TraceId string `json:"traceId"` SegmentId string `json:"segmentId"` SpanId int `json:"spanId"` ParentSpanId int `json:"parentSpanId"` Refs []SkywalkingRef `json:"refs"` ServiceCode string `json:"serviceCode"` ServiceInstanceName string `json:"serviceInstanceName"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` EndpointName string `json:"endpointName"` SpanType SpanType `json:"type"` Peer string `json:"peer"` Component string `json:"component"` IsError bool `json:"isError"` SpanLayer SpanLayer `json:"layer"` Tags []SkywalkingKeyValue `json:"tags"` Logs []SkywalkingLogEntity `json:"logs"` IsRoot bool `json:"isRoot"` SegmentSpanId string `json:"segmentSpanId"` SegmentParentSpanId string `json:"segmentParentSpanId"` }
type SkywalkingTrace ¶
type SkywalkingTrace struct {
Spans []SkywalkingSpan `json:"spans"`
}
type SpanLayer ¶
type SpanLayer int32
Map to the layer of span
const ( // Unknown layer. Could be anything. SpanLayer_Unknown SpanLayer = 0 // A database layer, used in tracing the database client component. SpanLayer_Database SpanLayer = 1 // A RPC layer, used in both client and server sides of RPC component. SpanLayer_RPCFramework SpanLayer = 2 // HTTP is a more specific RPCFramework. SpanLayer_Http SpanLayer = 3 // A MQ layer, used in both producer and consuer sides of the MQ component. SpanLayer_MQ SpanLayer = 4 // A cache layer, used in tracing the cache client component. SpanLayer_Cache SpanLayer = 5 // A FAAS layer, used in function-as-a-Service platform. SpanLayer_FAAS SpanLayer = 6 )
func (*SpanLayer) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.