Skip to content

Commit 2841df3

Browse files
committed
db.response.status_code type is string per the OTel convention https://opentelemetry.io/docs/specs/semconv/registry/attributes/db/
1 parent 51fc929 commit 2841df3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

source/open-telemetry/tests/operation/find_retries.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"db.mongodb.cursor_id": {
9696
"$$exists": false
9797
},
98-
"db.response.status_code": 89,
98+
"db.response.status_code": "89",
9999
"exception.message": {
100100
"$$type": "string"
101101
},

source/open-telemetry/tests/operation/find_retries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ tests:
5757
db.command.name: find
5858
network.transport: tcp
5959
db.mongodb.cursor_id: { $$exists: false }
60-
db.response.status_code: 89
60+
db.response.status_code: '89'
6161
exception.message: { $$type: string }
6262
exception.type: { $$type: string }
6363
exception.stacktrace: { $$type: string }

source/open-telemetry/tests/operation/retries.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"db.mongodb.cursor_id": {
102102
"$$exists": false
103103
},
104-
"db.response.status_code": 89,
104+
"db.response.status_code": "89",
105105
"exception.message": {
106106
"$$exists": true
107107
},

source/open-telemetry/tests/operation/retries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ tests:
6161
db.command.name: find
6262
network.transport: tcp
6363
db.mongodb.cursor_id: { $$exists: false }
64-
db.response.status_code: 89
64+
db.response.status_code: '89'
6565
exception.message: { $$exists: true }
6666
exception.type: { $$exists: true }
6767
exception.stacktrace: { $$exists: true }

0 commit comments

Comments
 (0)