Commit bb5600a
authored
[o11y] Fix some attributes to match Otel Semantic Conventions (#45753)
* [o11y] Fix some attributes to match Otel Semantic Conventions
* db.cosmosdb.sub_status_code is now an int
* Added `azure.cosmosdb.response.sub_status_code` to reflect this too
since it's the non-deprecated label
* db.cosmosdb.request_charge is now a double
* Added `azure.cosmosdb.operation.request_charge` to reflect this too
Sources
* https://github.com/open-telemetry/semantic-conventions/blob/723789b86a803492d03191b458138fff6e7a6b9f/docs/registry/attributes/db.md#db-cosmosdb-request-charge
* https://opentelemetry.io/docs/specs/semconv/registry/attributes/azure/#azure-cosmosdb-operation-request-charge
Signed-off-by: lloydmeta <lloydmeta@gmail.com>
* Add some tests to validate types and values.
* Add changelog
Signed-off-by: lloydmeta <lloydmeta@gmail.com>
* * Restore wrong types for existing attributes
* * Remove from bugs fixed
---------
Signed-off-by: lloydmeta <lloydmeta@gmail.com>1 parent dca0ce5 commit bb5600a
3 files changed
Lines changed: 17 additions & 0 deletions
File tree
- sdk/cosmos
- azure-cosmos-tests/src/test/java/com/azure/cosmos
- azure-cosmos
- src/main/java/com/azure/cosmos/implementation
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1482 | 1490 | | |
1483 | 1491 | | |
1484 | 1492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
1541 | 1545 | | |
1542 | 1546 | | |
1543 | 1547 | | |
1544 | 1548 | | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1545 | 1553 | | |
1546 | 1554 | | |
1547 | 1555 | | |
| |||
0 commit comments