Skip to content

Commit 6a2531b

Browse files
committed
feat: add a unique user agent
1 parent 70b45e3 commit 6a2531b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mongodbatlas/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ func (c *Config) NewClient() interface{} {
2626
client.Transport = logging.NewTransport("MongoDB Atlas", transport)
2727

2828
// Initialize the MongoDB Atlas API Client.
29-
return matlasClient.NewClient(client)
29+
atlasClient := matlasClient.NewClient(client)
30+
atlasClient.UserAgent = "terraform-provider-mongodbatlas"
31+
32+
return atlasClient
3033
}

0 commit comments

Comments
 (0)