Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made User Agent configurable post Cosmos client creation #32325

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ujjwalsoni1707
Copy link
Member

Packages impacted by this PR

@azure/cosmos

Issues associated with this PR

#32191

Describe the problem that is addressed by this PR

Currently there is no way to change user agent once CosmosClient has been created.But with addition of CosmosDB Integrations with AI libraries like Langchain and LlamaIndex, we want to track the adoption. Users can pass the CosmosClient instance itself during initialization of different stores (eg. vectorStore) which leads to default value of user-agent getting used and does not help in tracking adoption of these AI libraries. Also, if connectionString is passed, there is no way to set other CosmosClientOptions.

After merging this PR we will be able to :

  1. Update the User Agent string after creating the client.
  2. We can pass Connection string in the CosmosClientOptions itself, along with the other configurations during client creation.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@azure/cosmos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants