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 ¶
This section is empty.
Functions ¶
func ResponseWithJSON ¶
func ResponseWithJSON(rsp http.ResponseWriter, response *Response, code int)
func SkywalkingToTraces ¶
func SkywalkingToTraces(segment *agentV3.SegmentObject) ptrace.Traces
Types ¶
type Receiver ¶
type Receiver struct { agent.UnimplementedTraceSegmentReportServiceServer // contains filtered or unexported fields }
func NewReceiver ¶
NewReceiver creates a new Receiver reference.
func (*Receiver) Collect ¶
func (r *Receiver) Collect(stream agent.TraceSegmentReportService_CollectServer) error
Collect implements the service Collect traces func.
func (*Receiver) CollectInSync ¶
func (r *Receiver) CollectInSync(ctx context.Context, segments *agent.SegmentCollection) (*common.Commands, error)
CollectInSync implements the service CollectInSync traces func.
func (*Receiver) HTTPHandler ¶
func (r *Receiver) HTTPHandler(rsp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.