strace

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHashedMessageStep

func AddHashedMessageStep(ctx context.Context, message string, value, elapsed int32)

func AddMessageStep

func AddMessageStep(ctx context.Context, message string)

func AddPMessageStep

func AddPMessageStep(ctx context.Context, level netdata.PMessageLevel, message string, elapsed int32, params ...string)

func AddStep

func AddStep(ctx context.Context, step netdata.Step)

func EndApiCall

func EndApiCall(ctx context.Context, step *netdata.ApiCallStep, err error)

func EndFastHttpService added in v0.19.1

func EndFastHttpService(ctx context.Context, c *fasthttp.RequestCtx)

func EndHttpService

func EndHttpService(ctx context.Context, req *http.Request, res *http.Response)

func EndMethod

func EndMethod(ctx context.Context, step *netdata.MethodStep)

func EndService

func EndService(ctx context.Context)

func GoWithTrace

func GoWithTrace(ctx context.Context, serviceName string, func4Goroutine func(cascadeGoCtx context.Context))

<usage> for chained goroutine tracing

GoWithTrace(ctx, "myFuncName()", func(cascadeGoCtx context.Context) {
	myFunc(cascadeGoCtx)
})

func IsStream

func IsStream(ctx context.Context) bool

func MarkAsError

func MarkAsError(ctx context.Context, errorMessage string)

func MarkAsErrorForcibly

func MarkAsErrorForcibly(ctx context.Context, errorMessage string)

func SetAsStream

func SetAsStream(ctx context.Context) bool

func SetServiceNameForcibly

func SetServiceNameForcibly(ctx context.Context, serviceName string)

func StartApiCall

func StartApiCall(ctx context.Context, apiCallName string, address string) *netdata.ApiCallStep

func StartApiCallWithPropagation

func StartApiCallWithPropagation(ctx context.Context, req *http.Request, apiCallName string, address string) *netdata.ApiCallStep

func StartCustomMethod

func StartCustomMethod(ctx context.Context, methodName string) *netdata.MethodStep

func StartCustomMethodWithParam

func StartCustomMethodWithParam(ctx context.Context, methodName string, params ...interface{}) *netdata.MethodStep

func StartFastHttpService

func StartFastHttpService(ctx context.Context, c *fasthttp.RequestCtx) (newCtx context.Context)

func StartHttpService

func StartHttpService(ctx context.Context, req *http.Request) (newCtx context.Context)

func StartMethod

func StartMethod(ctx context.Context) *netdata.MethodStep

func StartMethodWithParam

func StartMethodWithParam(ctx context.Context, params ...interface{}) *netdata.MethodStep

func StartNewInheritanceService

func StartNewInheritanceService(ctx context.Context, parentTctx *netio.TraceContext) (newCtx context.Context, newTctx *netio.TraceContext)

func StartService

func StartService(ctx context.Context, serviceName, remoteIp string) (newCtx context.Context)

func StartTracingMode

func StartTracingMode()

Types

type XlogSampler

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

func GetXlogSampler

func GetXlogSampler() *XlogSampler

func (*XlogSampler) Run

func (sampler *XlogSampler) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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