MCPcopy Create free account
hub / github.com/dirk/quickhook / NewSpan

Function NewSpan

tracing/tracing.go:14–23  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

12}
13
14func NewSpan(name string) *Span {
15 start := time.Now()
16 span := &Span{
17 name: name,
18 start: start,
19 end: start,
20 }
21 spans = append(spans, span)
22 return span
23}
24
25func (span *Span) End() {
26 span.end = time.Now()

Callers 5

FilesToBeCommittedMethod · 0.92
FindHookExecutablesMethod · 0.92
shimGitFunction · 0.92
runExecutableFunction · 0.92
ExampleStartFunction · 0.85

Calls

no outgoing calls

Tested by 1

ExampleStartFunction · 0.68