[CDRIVER-1514] Is there a way to set appname other than URI? Created: 31/Aug/16  Updated: 11/Sep/19  Resolved: 31/Aug/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Task Priority: Major - P3
Reporter: David Golden Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Some applications may hard-code their appname rather than provide it with a connection URI. Is there a way to set the appname for a pool/client other than manipulating the user-provided URI?



 Comments   
Comment by Hannes Magnusson [ 31/Aug/16 ]

Yes:

https://s3.amazonaws.com/mciuploads/mongo-c-driver/docs/latest/mongoc_client_set_appname.html

and

https://s3.amazonaws.com/mciuploads/mongo-c-driver/docs/latest/mongoc_client_pool_set_appname.html

Generated at Wed Feb 07 21:12:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.