MCPcopy Index your code
hub / github.com/subtrace/subtrace / NewParser

Function NewParser

tracer/parser.go:83–98  ·  view source on GitHub ↗
(global *global.Global, event *event.Event)

Source from the content-addressed store, hash-verified

81}
82
83func NewParser(global *global.Global, event *event.Event) *Parser {
84 var journalIdx uint64
85 if journal.Enabled {
86 journalIdx = global.Journal.GetIndex()
87 }
88
89 return &Parser{
90 global: global,
91 event: event,
92
93 errs: make(chan error, 2),
94 begin: time.Now().UTC(),
95
96 journalIdx: journalIdx,
97 }
98}
99
100func decodeRawProto(depth int, enc map[string]any, buf []byte) error {
101 if depth > 100 {

Callers 4

RoundTripMethod · 0.92
proxyHTTP1Method · 0.92
newHTTP2StreamMethod · 0.92
RoundTripMethod · 0.92

Calls 1

GetIndexMethod · 0.45

Tested by

no test coverage detected