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

Method SetSampleRate

internal/telemetry/fake.go:47–49  ·  view source on GitHub ↗

SetSampleRate captures the sampling policy requested by a command.

(rate int)

Source from the content-addressed store, hash-verified

45
46// SetSampleRate captures the sampling policy requested by a command.
47func (r *InvocationRecorderSpy) SetSampleRate(rate int) {
48 r.LastSampleRate = rate
49}
50
51type pendingEventSpy struct {
52 event *ghtelemetry.Event

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected