Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ Flush
Method
Flush
internal/gh/ghtelemetry/telemetry.go:29–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
type
Service
interface
{
28
CommandRecorder
29
Flush()
30
}
31
32
const
SAMPLE_ALL = 100
Callers
12
Main
Function · 0.95
TestNewServiceLogModeFlushesToWriter
Function · 0.95
TestNewServiceLogModeWithColorLogsToWriter
Function · 0.95
TestServiceSampling
Function · 0.95
TestWithAdditionalCommonDimensions
Function · 0.95
Write
Method · 0.65
apiRun
Function · 0.65
Test_processResponse_template
Function · 0.65
TestServiceDeviceIDFallback
Function · 0.65
TestServiceFlush
Function · 0.65
TestServiceDisable
Function · 0.65
ensurePanicResponses
Function · 0.65
Implementers
5
RegexpWriter
pkg/cmd/pr/create/regexp_writer.go
EventRecorderSpy
internal/telemetry/fake.go
CommandRecorderSpy
internal/telemetry/fake.go
service
internal/telemetry/telemetry.go
NoOpService
internal/telemetry/telemetry.go
Calls
no outgoing calls
Tested by
8
TestNewServiceLogModeFlushesToWriter
Function · 0.76
TestNewServiceLogModeWithColorLogsToWriter
Function · 0.76
TestServiceSampling
Function · 0.76
TestWithAdditionalCommonDimensions
Function · 0.76
Test_processResponse_template
Function · 0.52
TestServiceDeviceIDFallback
Function · 0.52
TestServiceFlush
Function · 0.52
TestServiceDisable
Function · 0.52