Documentation ¶
Index ¶
- func CollectPStateMessage(getMaxAvr GetMaxAvg, getReqTimeCounter GetReqTimeCounter) *v1.PStatMessage
- func GetAgentInfo(span *TSpan) (appid, name string, appServerType int32, startTime string, err error)
- type AgentRouter
- type ApiIdMap
- type ErrorAnalysisFilter
- type Filter
- type GetMaxAvg
- type GetReqTimeCounter
- type GrpcAgent
- func (agent *GrpcAgent) AddFilter(filter Filter)
- func (agent *GrpcAgent) CheckValid(span *TSpan) bool
- func (agent *GrpcAgent) GetLastBusyTime() int64
- func (agent *GrpcAgent) Init(id, _name string, _type int32, StartTime string)
- func (agent *GrpcAgent) Interceptor(_ *TSpan) bool
- func (agent *GrpcAgent) SendSpan(span *TSpan)
- func (agent *GrpcAgent) Start()
- func (agent *GrpcAgent) Stop()
- func (agent *GrpcAgent) String() string
- type I_PacketRouter
- type RawPacket
- type RequestProfiler
- type SpanSender
- type TErrorInfo
- type TExceptionInfo
- type TSpan
- type TSpanEvent
- type UrlTemplateReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectPStateMessage ¶
func CollectPStateMessage(getMaxAvr GetMaxAvg, getReqTimeCounter GetReqTimeCounter) *v1.PStatMessage
Types ¶
type AgentRouter ¶
type AgentRouter struct { AgentMap map[string]*GrpcAgent PingId int32 Quit chan bool WG *sync.WaitGroup // contains filtered or unexported fields }
func (*AgentRouter) Clean ¶
func (manager *AgentRouter) Clean()
func (*AgentRouter) DispatchPacket ¶
func (manager *AgentRouter) DispatchPacket(packet *RawPacket) error
type ErrorAnalysisFilter ¶
type ErrorAnalysisFilter struct {
// contains filtered or unexported fields
}
func (*ErrorAnalysisFilter) Interceptor ¶
func (e *ErrorAnalysisFilter) Interceptor(span *TSpan) bool
type GetReqTimeCounter ¶
type GetReqTimeCounter func() [4]uint16
type GrpcAgent ¶
type GrpcAgent struct { AgentId string StartTime string BaseMD metadata.MD PingId int32 AgentOnLine bool ExitCh chan bool // contains filtered or unexported fields }
func (*GrpcAgent) CheckValid ¶
func (*GrpcAgent) GetLastBusyTime ¶
func (*GrpcAgent) Interceptor ¶
type I_PacketRouter ¶
type RequestProfiler ¶
type RequestProfiler struct { CTime int64 // contains filtered or unexported fields }
func (*RequestProfiler) GetMaxAvg ¶
func (reqProf *RequestProfiler) GetMaxAvg() (max, avg uint32)
func (*RequestProfiler) GetReqTimeProfiler ¶
func (reqProf *RequestProfiler) GetReqTimeProfiler() [4]uint16
func (*RequestProfiler) Interceptor ¶
func (reqProf *RequestProfiler) Interceptor(span *TSpan) bool
type SpanSender ¶
func (*SpanSender) Init ¶
func (spanSender *SpanSender) Init()
func (*SpanSender) Interceptor ¶
func (spanSender *SpanSender) Interceptor(span *TSpan) bool
func (*SpanSender) SenderGrpcMetaData ¶
func (spanSender *SpanSender) SenderGrpcMetaData(name string, metaType int32) error
type TErrorInfo ¶
type TExceptionInfo ¶
type TSpan ¶
type TSpan struct { AppServerType int32 `json:"FT"` AppServerTypeV2 int32 `json:":FT"` ParentAppServerType int32 `json:"ptype,string"` ParentSpanId int64 `json:"psid,string"` ParentApplicationName string `json:"pname"` StartTime int64 `json:"S"` StartTimeV2 int64 `json:":S"` ElapsedTime int32 `json:"E"` ElapsedTimeV2 int32 `json:":E"` AppId string `json:"appid"` AppIdV2 string `json:":appid"` AppName string `json:"appname"` AppNameV2 string `json:":appname"` Calls []*TSpanEvent `json:"calls"` Clues []string `json:"clues,omitempty"` SpanName string `json:"name"` SpanId int64 `json:"sid,string"` ServerType int32 `json:"stp,string"` TransactionId string `json:"tid"` Uri string `json:"uri"` UT string `json:"UT,omitempty"` EndPoint string `json:"server"` RemoteAddr string `json:"client"` AcceptorHost string `json:"Ah"` ExceptionInfo string `json:"EXP,omitempty"` ExceptionInfoV2 *TExceptionInfo `json:"EXP_V2,omitempty"` ErrorInfo *TErrorInfo `json:"ERR,omitempty"` ErrorMarked int32 `json:"EA,omitempty"` NginxHeader string `json:"NP,omitempty"` ApacheHeader string `json:"AP,omitempty"` }
func (*TSpan) FindHistogramLevel ¶
note FindHistogramLevel must come with histogramSize
func (*TSpan) GetAppName ¶
func (*TSpan) GetAppServerType ¶
func (*TSpan) GetElapsedTime ¶
func (*TSpan) GetStartTime ¶
type TSpanEvent ¶
type TSpanEvent struct { Name string `json:"name"` ExceptionInfo string `json:"EXP,omitempty"` ExceptionInfoV2 *TExceptionInfo `json:"EXP_V2,omitempty"` DestinationId string `json:"dst,omitempty"` NextSpanId int64 `json:"nsid,string,omitempty"` EndPoint string `json:"server,omitempty"` StartElapsed int32 `json:"S"` EndElapsed int32 `json:"E"` StartElapsedV2 int32 `json:":S"` EndElapsedV2 int32 `json:":E"` ServiceType int32 `json:"stp,string"` Clues []string `json:"clues,omitempty"` Calls []*TSpanEvent `json:"calls,omitempty"` SqlMeta string `json:"SQL,omitempty"` }
func (*TSpanEvent) GetEndElapsed ¶
func (spanEv *TSpanEvent) GetEndElapsed() int32
func (*TSpanEvent) GetStartElapsed ¶
func (spanEv *TSpanEvent) GetStartElapsed() int32
type UrlTemplateReport ¶
type UrlTemplateReport struct { BucketVersion int32 // contains filtered or unexported fields }
func CreateUrlTemplateReport ¶
func CreateUrlTemplateReport() *UrlTemplateReport
func (*UrlTemplateReport) Interceptor ¶
func (utr *UrlTemplateReport) Interceptor(span *TSpan) bool
func (*UrlTemplateReport) MoveUtReport ¶
func (utr *UrlTemplateReport) MoveUtReport() *v1.PStatMessage
Click to show internal directories.
Click to hide internal directories.