Skip to content

Commit 58d5ea5

Browse files
authored
Merge pull request #403 from databacker/fix-schema-telemetry
was reporting provided-schemas telemetry as false when true
2 parents f131ccc + cbb3de6 commit 58d5ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/core/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (e *Executor) Dump(ctx context.Context, opts DumpOptions) (DumpResults, err
8282
dw := make([]database.DumpWriter, 0)
8383

8484
// do we back up all schemas, or just provided ones
85-
span.SetAttributes(attribute.Bool("provided-schemas", len(dbnames) == 0))
85+
span.SetAttributes(attribute.Bool("provided-schemas", len(dbnames) != 0))
8686
if len(dbnames) == 0 {
8787
if dbnames, err = database.GetSchemas(dbconn); err != nil {
8888
return results, fmt.Errorf("failed to list database schemas: %v", err)

0 commit comments

Comments
 (0)