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

Function cloneEvent

internal/telemetry/telemetry.go:399–405  ·  view source on GitHub ↗
(event ghtelemetry.Event)

Source from the content-addressed store, hash-verified

397}
398
399func cloneEvent(event ghtelemetry.Event) ghtelemetry.Event {
400 return ghtelemetry.Event{
401 Type: event.Type,
402 Dimensions: maps.Clone(event.Dimensions),
403 Measures: maps.Clone(event.Measures),
404 }
405}
406
407// maxPayloadSize is a safety limit for the telemetry payload written to the
408// child process stdin pipe. This bounds the data transferred to a reasonable

Callers 4

BeginMethod · 0.85
EventsMethod · 0.85
RecordMethod · 0.85
BeginMethod · 0.85

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected