Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabh1007 committed Sep 30, 2024
1 parent c120995 commit 8106332
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
14 changes: 14 additions & 0 deletions model/database/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ groups:
The `error.type` SHOULD match the error code returned by the database or the client library,
the canonical name of exception that occurred, or another low-cardinality error identifier.
Instrumentations SHOULD document the list of errors they report.
- id: attributes.db.cosmos.minimal
type: attribute_group
brief: 'Cosmos DB attributes'
attributes:
- ref: db.system
- ref: db.collection.name
- ref: db.namespace
- ref: db.operation.name
- ref: server.address
- ref: db.cosmosdb.status_code
- ref: db.cosmosdb.sub_status_code
- ref: db.cosmosdb.connection_mode
- ref: db.cosmosdb.operation_type
37 changes: 37 additions & 0 deletions model/database/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ groups:
- ref: db.namespace
requirement_level:
conditionally_required: If available.

Check failure on line 36 in model/database/metrics.yaml

View workflow job for this annotation

GitHub Actions / yamllint

[trailing-spaces] trailing spaces
- id: metric.db.client.connection.count
type: metric
metric_name: db.client.connection.count
Expand Down Expand Up @@ -133,3 +134,39 @@ groups:
attributes:
- ref: db.client.connection.pool.name
requirement_level: required

Check failure on line 137 in model/database/metrics.yaml

View workflow job for this annotation

GitHub Actions / yamllint

[trailing-spaces] trailing spaces
- id: metric.db.cosmos.operation.request_charge
type: metric
metric_name: db.cosmos.operation.request_charge
brief: "Request Charge Consumed by the operation"
instrument: histogram
unit: "{request_units}"
stability: experimental
extends: attributes.db.cosmos.minimal

Check failure on line 146 in model/database/metrics.yaml

View workflow job for this annotation

GitHub Actions / yamllint

[trailing-spaces] trailing spaces
- id: metric.db.cosmos.operation.max_item_count
type: metric
metric_name: db.cosmos.operation.max_item_count
brief: "Max Item Count Requested by the Feed (Query, ReadAll, ReadMany, Change Feed) operation"
instrument: gauge
unit: "{count}"
stability: experimental
extends: attributes.db.cosmos.minimal

- id: metric.db.cosmos.operation.actual_item_count
type: metric
metric_name: db.cosmos.operation.actual_item_count
brief: "Actual Item Count got by the Feed (Query, ReadAll, ReadMany, Change Feed) Operation"
instrument: gauge
unit: "{count}"
stability: experimental
extends: attributes.db.cosmos.minimal

- id: metric.db.cosmos.operation.regions_contacted
type: metric
metric_name: db.cosmos.operation.regions_contacted
brief: "Number of region contacted by the Operation"
instrument: gauge
unit: "{count}"
stability: experimental
extends: attributes.db.cosmos.minimal

0 comments on commit 8106332

Please sign in to comment.