Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

sdk/sqreen-instrumentation-tool: add limited instrumentation of go.mongodb.org/mongo-driver/mongo #137

Merged
merged 1 commit into from
Jul 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdk/sqreen-instrumentation-tool/instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ var (
"os",
"net/http",
"github.com/gin-gonic/gin",
"go.mongodb.org/mongo-driver/mongo",
}

// Optional list packages, files and functions we want to only instrument for
Expand All @@ -221,6 +222,10 @@ var (
// Same comment as net/http
"context.go", // context.go contains the body parsers
},
"go.mongodb.org/mongo-driver/mongo": {
// Limited for performance reasons to:
"mongo.go", // mongo.go contains the bson transformation function
},
}
)

Expand Down