-
Notifications
You must be signed in to change notification settings - Fork 523
Fixes attribute names as per OTel Semantic Conventions #5472
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
base: master
Are you sure you want to change the base?
Conversation
| /// Represents the unique identifier of the client instance. | ||
| /// </summary> | ||
| public const string ClientId = "azure.cosmosdb.client.id"; | ||
| public const string ClientId = "azure.client.id"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can just replace the attribute names - this would be a breakign change. Instead populating attributes with both names seems the appropriate way. Maybe we can add an opt-in to allow only populating teh new names if a customer explicitly opt-in into it for perf reasons.
FabianMeiswinkel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current change is a breaking behavior change
|
@FabianMeiswinkel thank you for the review. Is the support for OpenTelemetry already stable in this lib? As far as I know, it's not yet stable and something like Also, such changes have already been made in the past (#4995 or #4765 for example). |
db.system.namevaluecosmosdb=>azure.cosmosdbazure.cosmosdb.client.id=>azure.client.idazure.cosmosdb.request.request_charge=>azure.cosmosdb.operation.request_chargeazure.cosmosdb.contacted_regions=>azure.cosmosdb.operation.contacted_regionsazure.cosmosdb.row.count=>db.response.returned_rowsTested manually with both the Application Insights SDK and OpenTelemetry SDK.