netio

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetTextSent

func ResetTextSent()

func SendAlert

func SendAlert(level netdata.AlertLevel, title, message string)

func SendApicall

func SendApicall(name string) int32

func SendDesc

func SendDesc(name string) int32

func SendError

func SendError(name string) int32

func SendHashedMessage

func SendHashedMessage(name string) int32

func SendLogin

func SendLogin(name string) int32

func SendMethod

func SendMethod(name string) int32

func SendObjName

func SendObjName(name string) int32

func SendPackDirect

func SendPackDirect(pack netdata.Pack)

func SendPanic

func SendPanic(message string)

func SendProfile

func SendProfile(steps []netdata.Step, tctx *TraceContext)

func SendReferer

func SendReferer(name string) int32

func SendServiceName

func SendServiceName(name string) int32

func SendStackElement

func SendStackElement(name string) int32

func SendUserAgent

func SendUserAgent(name string) int32

func SendXlog

func SendXlog(pack *netdata.XlogPack)

Types

type ProfileCollector

type ProfileCollector struct {
	// contains filtered or unexported fields
}

func NewProfileCollector

func NewProfileCollector(tctx *TraceContext) *ProfileCollector

func (*ProfileCollector) Add

func (c *ProfileCollector) Add(ss netdata.Step)

func (*ProfileCollector) Close

func (c *ProfileCollector) Close(ok bool)

func (*ProfileCollector) Pop

func (c *ProfileCollector) Pop(ss netdata.Step)

func (*ProfileCollector) Process

func (c *ProfileCollector) Process(ss netdata.Step)

func (*ProfileCollector) Push

func (c *ProfileCollector) Push(ss netdata.Step)

type TraceContext

type TraceContext struct {
	Closed     bool
	Noop       bool
	LastMethod string
	IsStream   bool

	Inherit          bool
	InheritStartTime time.Time

	Goid         int
	Parent       *TraceContext
	Profile      *ProfileCollector
	ProfileCount int
	ProfileSize  int

	Txid  int64
	Gxid  int64
	XType netdata.XlogType

	StartTime time.Time

	ServiceHash int32
	ServiceName string
	RemoteIp    string

	Error           int32
	HttpMethod      string
	HttpQuery       string
	HttpContentType string

	SqlCount int32
	SqlTime  int32
	Sqltext  string

	Status        int32
	ApicallName   string
	ApicallCount  int32
	ApicallTime   int32
	ApicallTarget string

	Userid          int64
	UserAgent       int32
	UserAgentString string
	Referer         int32

	IsChildTx     bool
	Caller        int64
	Callee        int64
	CallerObjHash int32

	Login string
	Desc  string

	Text1 string
	Text2 string
	Text3 string
	Text4 string
	Text5 string
}

func NewNoopTraceContext added in v0.9.23

func NewNoopTraceContext() *TraceContext

func NewTraceContext

func NewTraceContext() *TraceContext

func (BADRECV) ToXlog

func (tctx TraceContext) ToXlog(discardType netdata.XlogDiscardType, elapsed int32) *netdata.XlogPack

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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