Documentation
¶
Index ¶
- func AddHashedMessageStep(ctx context.Context, message string, value, elapsed int32)
- func AddMessageStep(ctx context.Context, message string)
- func AddPMessageStep(ctx context.Context, level netdata.PMessageLevel, message string, ...)
- func AddStep(ctx context.Context, step netdata.Step)
- func EndHttpService(ctx context.Context, req http.Request, res http.Response)
- func EndMethod(ctx context.Context, step *netdata.MethodStep)
- func EndService(ctx context.Context)
- func GoWithTrace(ctx context.Context, serviceName string, ...)
- func IsStream(ctx context.Context) bool
- func MarkAsError(ctx context.Context, errorMessage string)
- func MarkAsErrorForcibly(ctx context.Context, errorMessage string)
- func SetAsStream(ctx context.Context) bool
- func SetServiceNameForcibly(ctx context.Context, serviceName string)
- func StartHttpService(ctx context.Context, req http.Request) (newCtx context.Context)
- func StartMethod(ctx context.Context) *netdata.MethodStep
- func StartMethodWithParam(ctx context.Context, params ...interface{}) *netdata.MethodStep
- func StartNewInheritanceService(ctx context.Context, parentTctx *netio.TraceContext) (newCtx context.Context, newTctx *netio.TraceContext)
- func StartService(ctx context.Context, serviceName, remoteIp string) (newCtx context.Context)
- func StartTracingMode()
- type XlogSampler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHashedMessageStep ¶
func AddMessageStep ¶
func AddPMessageStep ¶
func EndService ¶
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 MarkAsError ¶
func MarkAsErrorForcibly ¶ added in v0.9.6
func SetAsStream ¶ added in v0.9.3
func SetServiceNameForcibly ¶
func StartHttpService ¶
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 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()
Click to show internal directories.
Click to hide internal directories.