We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9549eb2 commit 09852daCopy full SHA for 09852da
receiver/mongodbatlasreceiver/internal/mongodb_atlas_client.go
@@ -145,12 +145,14 @@ func NewMongoDBAtlasClient(
145
baseURL = "https://cloud.mongodb.com"
146
}
147
148
- log.Debug("Creating MongoDB Atlas client",
149
- zap.String("baseURL", baseURL),
150
- zap.String("publicKey", publicKey),
151
- zap.String("privateKey", privateKey))
+ log.Info("Creating MongoDB Atlas client",
+ zap.String("baseURL", baseURL))
+
+ client, err := mongodbatlas.New(tc,mongodbatlas.SetBaseURL(baseURL))
152
+ if err != nil {
153
+ log.Info("failed to create client", zap.Error(err))
154
+ }
155
- client := mongodbatlas.NewClient(tc)
156
157
return &MongoDBAtlasClient{
158
log,
0 commit comments