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

Adding User Agent suffix when Bulk mode is on #922

Merged
merged 12 commits into from
Oct 23, 2019

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Oct 18, 2019

Pull Request Template

Description

In order to have visibility on requests having Bulk mode on, this PR adds a suffix when the feature is on.

The suffix adds a bit array for features to the base UserAgentContainer like so:

cosmos-netstandard-sdk/3.3.2|3.4.0|55405|X64|Microsoft Windows 10.0.18362 |.NET Core 4.6.28008.01**|F 00000001**| UserApplicationName/1.0

If Bulk support is off, there is nothing added to the base string.

Additionally, the CosmosClientOptions will not create the UserAgentContainer when GetConnectionPolicy is called, not before, as it is not needed, until the ConnectionPolicy is requested.

Also, fixes the casing in WithBulkexecution to be WithBulkExecution for the builder extension.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

@ealsur ealsur added the feature-request New feature or request label Oct 18, 2019
@ealsur ealsur self-assigned this Oct 18, 2019
@ealsur ealsur requested a review from j82w October 18, 2019 20:18
@kirankumarkolli
Copy link
Member

Change log please.

@kirankumarkolli kirankumarkolli merged commit c27ab6a into master Oct 23, 2019
@kirankumarkolli kirankumarkolli deleted the users/ealsur/featuresuffix branch October 23, 2019 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants