MCPcopy Index your code
hub / github.com/coder/coder / InsertTelemetryItemIfNotExists

Method InsertTelemetryItemIfNotExists

coderd/database/querier.go:985–985  ·  view source on GitHub ↗
(ctx context.Context, arg InsertTelemetryItemIfNotExistsParams)

Source from the content-addressed store, hash-verified

983 InsertReplica(ctx context.Context, arg InsertReplicaParams) (Replica, error)
984 InsertTask(ctx context.Context, arg InsertTaskParams) (TaskTable, error)
985 InsertTelemetryItemIfNotExists(ctx context.Context, arg InsertTelemetryItemIfNotExistsParams) error
986 // Inserts a new lock row into the telemetry_locks table. Replicas should call
987 // this function prior to attempting to generate or publish a heartbeat event to
988 // the telemetry service.

Callers 5

TestTelemetryItemFunction · 0.65
TestSystemFunctionsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 2

TestTelemetryItemFunction · 0.52
TestSystemFunctionsMethod · 0.52