strace

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: 18 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 added in v0.9.24

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

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 added in v0.9.3

func IsStream(ctx context.Context) bool

func MarkAsError

func MarkAsError(ctx context.Context, errorMessage string)

func MarkAsErrorForcibly added in v0.9.6

func MarkAsErrorForcibly(ctx context.Context, errorMessage string)

func SetAsStream added in v0.9.3

func SetAsStream(ctx context.Context) bool

func SetServiceNameForcibly

func SetServiceNameForcibly(ctx context.Context, serviceName string)

func StartApiCall added in v0.9.24

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

func StartApiCallWithPropagation added in v0.10.0

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

func StartCustomMethod added in v0.9.16

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

func StartCustomMethodWithParam added in v0.9.16

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

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 added in v0.9.8

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