Skip to content

Commit

Permalink
backupccl: update default backup telemetry source to ".manual"
Browse files Browse the repository at this point in the history
This commit updates the telemetry for backup to always include the
source (either ".manual" or ".scheduled"). This allows for folks to
search by a prefix to get the telemetry for all backups, and the
specific source can be appened to filter the telemetry between manual
and scheduled backups.

Release note: None
  • Loading branch information
pbardea committed Sep 29, 2020
1 parent 7bda03c commit f714e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/backup_planning.go
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ func backupPlanHook(

collectTelemetry := func() {
// sourceSuffix specifies if this schedule was created by a schedule.
sourceSuffix := ""
sourceSuffix := ".manual"
if backupStmt.CreatedByInfo != nil &&
backupStmt.CreatedByInfo.Name == jobs.CreatedByScheduledJobs {
sourceSuffix = ".scheduled"
Expand Down

0 comments on commit f714e66

Please sign in to comment.