Skip to content

Commit e5ee411

Browse files
committed
feat: add tracing for listing collections in MongoDB
1 parent 286d5ed commit e5ee411

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/dbio/database/database_mongo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ func (conn *MongoDBConn) GetSchemas() (data iop.Dataset, err error) {
476476
func (conn *MongoDBConn) GetTables(schema string) (data iop.Dataset, err error) {
477477
queryContext := g.NewContext(conn.Context().Ctx)
478478

479+
g.Trace("listing collections from database: %s", schema)
479480
names, err := conn.Client.Database(schema).ListCollectionNames(queryContext.Ctx, bson.D{})
480481
if err != nil {
481482
return data, g.Error(err, "could not list mongo collections in database %s", schema)

0 commit comments

Comments
 (0)