Skip to content

Commit bcaa994

Browse files
authored
Merge pull request #268 from gssbzn/add-user-agent
feat: add a unique user agent
2 parents fe6dd62 + 6a2531b commit bcaa994

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)