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

Cosmos DB: Add UserAgentSuffix #763

Merged
merged 4 commits into from
Feb 8, 2022
Merged

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Feb 1, 2022

For scenarios when users want to stamp all requests made by the Function App to Cosmos DB through the Bindings/Trigger with a particular string.

It is useful if the user wants to separate the activity in the Azure Metrics for a particular Function App, by filtering the User Agent containing the defined string.

This configuration is exposed through host.json:

{
  "cosmosDB": {
    "userAgentSuffix": "MyDesiredUserAgentStamp"
  }
}

Closes #729

@ealsur ealsur self-assigned this Feb 1, 2022
@ealsur ealsur requested a review from brettsam February 1, 2022 15:50
@ealsur ealsur changed the title Cosmos DB: Add UserAgentPrefix Cosmos DB: Add UserAgentSuffix Feb 1, 2022
@ealsur ealsur merged commit 003b07b into Azure:dev Feb 8, 2022
@ealsur ealsur deleted the users/ealsur/useragent branch February 8, 2022 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to specify UserAgentSuffix for CosmosDbTriggerAttribute and CosmosDBAttribute
2 participants