Skip to content

Commit 5118aeb

Browse files
committed
remove ReportDeployment from Reporter
1 parent 0a95dcd commit 5118aeb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

coderd/telemetry/telemetry.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ type Reporter interface {
9999
// database. For example, if a new user is added, a snapshot can
100100
// contain just that user entry.
101101
Report(snapshot *Snapshot)
102-
// ReportDeployment sends deployment information to the telemetry server.
103-
ReportDeployment()
104102
Enabled() bool
105103
Close()
106104
}
@@ -224,12 +222,6 @@ func (r *remoteReporter) reportWithDeployment() {
224222
r.reportSync(snapshot)
225223
}
226224

227-
func (r *remoteReporter) ReportDeployment() {
228-
if err := r.deployment(); err != nil {
229-
r.options.Logger.Debug(r.ctx, "failed to report deployment", slog.Error(err))
230-
}
231-
}
232-
233225
// deployment collects host information and reports it to the telemetry server.
234226
func (r *remoteReporter) deployment() error {
235227
sysInfoHost, err := sysinfo.Host()
@@ -1596,4 +1588,3 @@ type noopReporter struct{}
15961588
func (*noopReporter) Report(_ *Snapshot) {}
15971589
func (*noopReporter) Enabled() bool { return false }
15981590
func (*noopReporter) Close() {}
1599-
func (*noopReporter) ReportDeployment() {}

0 commit comments

Comments
 (0)