MCPcopy
hub / github.com/cli/cli / TelemetryAPI

Interface TelemetryAPI

internal/barista/observability/telemetry.twirp.go:36–39  ·  view source on GitHub ↗

====================== TelemetryAPI Interface ====================== TelemetryAPI receives telemetry events from client applications. This endpoint is unauthenticated to support anonymous telemetry collection.

Source from the content-addressed store, hash-verified

34// TelemetryAPI receives telemetry events from client applications.
35// This endpoint is unauthenticated to support anonymous telemetry collection.
36type TelemetryAPI interface {
37 // RecordEvents records a batch of telemetry events from a client application.
38 RecordEvents(context.Context, *RecordEventsRequest) (*RecordEventsResponse, error)
39}
40
41// ============================
42// TelemetryAPI Protobuf Client

Callers 3

runSendTelemetryFunction · 0.65
serveRecordEventsJSONMethod · 0.65

Implementers 3

mockTelemetryAPIpkg/cmd/send-telemetry/send_telemetry_
telemetryAPIProtobufClientinternal/barista/observability/telemet
telemetryAPIJSONClientinternal/barista/observability/telemet

Calls

no outgoing calls

Tested by

no test coverage detected