MCPcopy Create free account
hub / github.com/cli/cli / InvocationRecorderSpy

Struct InvocationRecorderSpy

internal/telemetry/fake.go:41–44  ·  view source on GitHub ↗

InvocationRecorderSpy adds invocation sampling to EventRecorderSpy.

Source from the content-addressed store, hash-verified

39
40// InvocationRecorderSpy adds invocation sampling to EventRecorderSpy.
41type InvocationRecorderSpy struct {
42 EventRecorderSpy
43 LastSampleRate int
44}
45
46// SetSampleRate captures the sampling policy requested by a command.
47func (r *InvocationRecorderSpy) SetSampleRate(rate int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected