trace

package
v0.81.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

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

func NewReceiver(nextConsumer consumer.Traces, set receiver.CreateSettings) (*Receiver, error)

NewReceiver creates a new Receiver reference.

func (*Receiver) Collect

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)

type Response

type Response struct {
	Status string `json:"status"`
	Msg    string `json:"msg"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL