Skip to content

Cosmos DB: Add UserAgentSuffix#763

Merged
ealsur merged 4 commits into
Azure:devfrom
ealsur:users/ealsur/useragent
Feb 8, 2022
Merged

Cosmos DB: Add UserAgentSuffix#763
ealsur merged 4 commits into
Azure:devfrom
ealsur:users/ealsur/useragent

Conversation

@ealsur
Copy link
Copy Markdown
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
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