trace

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextKey = TraceKey("trace-key")

Functions

func NewGocoreTraceService

func NewGocoreTraceService(params ...interface{}) (interface{}, error)

Types

type GocoreTraceProvider

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

func (*GocoreTraceProvider) Boot

func (provider *GocoreTraceProvider) Boot(c framework.Container) error

Boot will called when the service instantiate

func (*GocoreTraceProvider) IsDefer

func (provider *GocoreTraceProvider) IsDefer() bool

IsDefer define whether the service instantiate when first make or register

func (*GocoreTraceProvider) Name

func (provider *GocoreTraceProvider) Name() string

/ Name define the name for this service

func (*GocoreTraceProvider) Params

func (provider *GocoreTraceProvider) Params(c framework.Container) []interface{}

Params define the necessary params for NewInstance

func (*GocoreTraceProvider) Register

Register registe a new function for make a service instance

type GocoreTraceService

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

func (*GocoreTraceService) ExtractHTTP

func (t *GocoreTraceService) ExtractHTTP(req *http.Request) *contract.TraceContext

func (*GocoreTraceService) GetTrace

func (*GocoreTraceService) InjectHTTP

func (t *GocoreTraceService) InjectHTTP(req *http.Request, tc *contract.TraceContext) *http.Request

func (*GocoreTraceService) NewTrace

func (t *GocoreTraceService) NewTrace() *contract.TraceContext

NewTrace 生成新的跟踪

func (*GocoreTraceService) SetSpanIDService

func (t *GocoreTraceService) SetSpanIDService(service contract.IDService)

func (*GocoreTraceService) SetTraceIDService

func (t *GocoreTraceService) SetTraceIDService(service contract.IDService)

func (*GocoreTraceService) StartSpan

func (*GocoreTraceService) ToMap

func (*GocoreTraceService) WithTrace

type TraceKey

type TraceKey string

Jump to

Keyboard shortcuts

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