model

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const L7_FLOW_SIGNAL_SOURCE_OTEL = 4

deepflow-app use `signal_source` to divide flows, all comes from apm use `4`

Variables

This section is empty.

Functions

This section is empty.

Types

type ExSpan

type ExSpan struct {
	Name            string `json:"name"`
	ID              uint64 `json:"_id"`           // unique id
	StartTimeUs     int64  `json:"start_time_us"` // microseconds
	EndTimeUs       int64  `json:"end_time_us"`
	TapSide         string `json:"tap_side"` // spankind=server: s-app/ spankind=client: c-app/ spankind=internal: app
	L7Protocol      int    `json:"l7_protocol"`
	L7ProtocolStr   string `json:"l7_protocol_str"`
	TraceID         string `json:"trace_id"`
	SpanID          string `json:"span_id"`
	ParentSpanID    string `json:"parent_span_id"`
	SpanKind        int    `json:"span_kind"` // client/server/internal
	Endpoint        string `json:"endpoint"`
	RequestType     string `json:"request_type"`     // method
	RequestResource string `json:"request_resource"` // path
	ResponseStatus  int    `json:"response_status"`
	AppService      string `json:"app_service"`   // service name
	AppInstance     string `json:"app_instance"`  // service instance name
	ServiceUname    string `json:"service_uname"` // equals app_service
	SignalSource    int    `json:"signal_source"` // fixed value, use 4

	Attribute map[string]string `json:"attribute"`
}

type ExTrace

type ExTrace struct {
	Spans []ExSpan `json:"spans"`
}

type ExTraceResponse

type ExTraceResponse struct {
	Status string `json:"status"`
	Error  string `json:"error,omitempty"`
	Data   any    `json:"data,omitempty"`
}

type TraceAdapter

type TraceAdapter interface {
	GetTrace(traceID string, c *config.ExternalAPM) (*ExTrace, error)
}

Jump to

Keyboard shortcuts

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