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

Function newSampler

tracer/parser.go:526–532  ·  view source on GitHub ↗
(orig io.ReadCloser)

Source from the content-addressed store, hash-verified

524}
525
526func newSampler(orig io.ReadCloser) *sampler {
527 return &sampler{
528 orig: orig,
529 errs: make(chan error, 1),
530 data: make([]byte, PayloadLimitBytes),
531 }
532}
533
534func (s *sampler) setError(err error) {
535 if errors.Is(err, io.EOF) {

Callers 2

UseRequestMethod · 0.85
UseResponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected