Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/operation/aggregate.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
"db.collection.name": "test",
"db.command.name": "aggregate",
"network.transport": "tcp",
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": false
},
Expand Down
2 changes: 1 addition & 1 deletion source/open-telemetry/tests/operation/aggregate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ tests:
db.collection.name: test
db.operation.name: aggregate
db.operation.summary: aggregate operation-aggregate.test

nested:
- name: aggregate
attributes:
Expand All @@ -43,7 +44,6 @@ tests:
db.collection.name: *collectionName0
db.command.name: aggregate
network.transport: tcp
db.mongodb.cursor_id: { $$exists: false }
db.response.status_code: { $$exists: false }
exception.message: { $$exists: false }
exception.type: { $$exists: false }
Expand Down
92 changes: 85 additions & 7 deletions source/open-telemetry/tests/operation/atlas_search.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,36 @@
"attributes": {
"db.system": "mongodb",
"db.namespace": "operation-atlas-search",
"db.command.name": "createSearchIndexes",
"db.collection.name": "test",
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": true
},
"network.transport": "tcp",
"db.mongodb.server_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.mongodb.driver_connection_id": {
"$$type": [
"int",
"long"
]
},
"exception.message": {
"$$exists": true
},
"exception.type": {
"$$exists": true
},
"exception.stacktrace": {
"$$exists": true
},
"server.address": {
"$$type": "string"
},
Expand All @@ -123,9 +152,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "createSearchIndexes operation-atlas-search.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -163,6 +189,7 @@
"attributes": {
"db.system": "mongodb",
"db.namespace": "operation-atlas-search",
"db.command.name": "updateSearchIndex",
"db.collection.name": "test",
"server.address": {
"$$type": "string"
Expand All @@ -173,8 +200,33 @@
"string"
]
},
"server.type": {
"$$type": "string"
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": true
},
"exception.message": {
"$$exists": true
},
"exception.type": {
"$$exists": true
},
"exception.stacktrace": {
"$$exists": true
},
"network.transport": "tcp",
"db.mongodb.server_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.mongodb.driver_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.query.summary": "updateSearchIndex operation-atlas-search.test",
"db.query.text": {
Expand Down Expand Up @@ -205,6 +257,7 @@
"attributes": {
"db.system": "mongodb",
"db.namespace": "operation-atlas-search",
"db.command.name": "dropSearchIndex",
"db.collection.name": "test",
"server.address": {
"$$type": "string"
Expand All @@ -215,8 +268,33 @@
"string"
]
},
"server.type": {
"$$type": "string"
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": true
},
"exception.message": {
"$$exists": true
},
"exception.type": {
"$$exists": true
},
"exception.stacktrace": {
"$$exists": true
},
"network.transport": "tcp",
"db.mongodb.server_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.mongodb.driver_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.query.summary": "dropSearchIndex operation-atlas-search.test",
"db.query.text": {
Expand Down
37 changes: 34 additions & 3 deletions source/open-telemetry/tests/operation/atlas_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,20 @@ tests:
attributes:
db.system: mongodb
db.namespace: operation-atlas-search
db.command.name: createSearchIndexes
db.collection.name: test
db.mongodb.cursor_id: { $$exists: false }
db.response.status_code: { $$exists: true }
network.transport: tcp
db.mongodb.server_connection_id:
$$type: [ int, long ]
db.mongodb.driver_connection_id:
$$type: [ int, long ]
exception.message: { $$exists: true }
exception.type: { $$exists: true }
exception.stacktrace: { $$exists: true }
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.query.summary: createSearchIndexes operation-atlas-search.test
db.query.text:
$$matchAsDocument:
Expand All @@ -98,15 +108,26 @@ tests:
db.collection.name: test
db.operation.name: updateSearchIndex
db.operation.summary: updateSearchIndex operation-atlas-search.test

nested:
- name: updateSearchIndex
attributes:
db.system: mongodb
db.namespace: operation-atlas-search
db.command.name: updateSearchIndex
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.mongodb.cursor_id: { $$exists: false }
db.response.status_code: { $$exists: true }
exception.message: { $$exists: true }
exception.type: { $$exists: true }
exception.stacktrace: { $$exists: true }
network.transport: tcp
db.mongodb.server_connection_id:
$$type: [ int, long ]
db.mongodb.driver_connection_id:
$$type: [ int, long ]
db.query.summary: updateSearchIndex operation-atlas-search.test
db.query.text:
$$matchAsDocument:
Expand All @@ -127,10 +148,20 @@ tests:
attributes:
db.system: mongodb
db.namespace: operation-atlas-search
db.command.name: dropSearchIndex
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.mongodb.cursor_id: { $$exists: false }
db.response.status_code: { $$exists: true }
exception.message: { $$exists: true }
exception.type: { $$exists: true }
exception.stacktrace: { $$exists: true }
network.transport: tcp
db.mongodb.server_connection_id:
$$type: [ int, long ]
db.mongodb.driver_connection_id:
$$type: [ int, long ]
db.query.summary: dropSearchIndex operation-atlas-search.test
db.query.text:
$$matchAsDocument:
Expand Down
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/operation/bulk_write.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "bulkWrite admin",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
1 change: 0 additions & 1 deletion source/open-telemetry/tests/operation/bulk_write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ tests:
exception.stacktrace: { $$exists: false }
server.address: { $$type: string }
server.port: { $$type: [ int, long ] }
server.type: { $$type: string }
db.query.summary: bulkWrite admin
db.query.text:
$$matchAsDocument:
Expand Down
29 changes: 29 additions & 0 deletions source/open-telemetry/tests/operation/delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"name": "delete",
"attributes": {
"db.system": "mongodb",
"db.command.name": "delete",
"db.namespace": "operation-delete",
"db.collection.name": "test",
"server.address": {
Expand All @@ -72,6 +73,34 @@
"string"
]
},
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": false
},
"exception.message": {
"$$exists": false
},
"exception.type": {
"$$exists": false
},
"exception.stacktrace": {
"$$exists": false
},
"network.transport": "tcp",
"db.mongodb.server_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.mongodb.driver_connection_id": {
"$$type": [
"int",
"long"
]
},
"db.query.summary": "delete operation-delete.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
11 changes: 11 additions & 0 deletions source/open-telemetry/tests/operation/delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,21 @@ tests:
- name: delete
attributes:
db.system: mongodb
db.command.name: delete
db.namespace: operation-delete
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
db.mongodb.cursor_id: { $$exists: false }
db.response.status_code: { $$exists: false }
exception.message: { $$exists: false }
exception.type: { $$exists: false }
exception.stacktrace: { $$exists: false }
network.transport: tcp
db.mongodb.server_connection_id:
$$type: [ int, long ]
db.mongodb.driver_connection_id:
$$type: [ int, long ]
db.query.summary: delete operation-delete.test
db.query.text:
$$matchAsDocument:
Expand Down
5 changes: 5 additions & 0 deletions source/open-telemetry/tests/operation/drop_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"description": "operation drop collection",
"schemaVersion": "1.27",
"runOnRequirements": [
{
"minServerVersion": "7.0"
}
],
"createEntities": [
{
"client": {
Expand Down
5 changes: 5 additions & 0 deletions source/open-telemetry/tests/operation/drop_collection.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
description: operation drop collection
schemaVersion: '1.27'

runOnRequirements:
- minServerVersion: "7.0"

createEntities:
- client:
id: &client0 client0
Expand Down Expand Up @@ -34,6 +38,7 @@ tests:
db.collection.name: test
db.operation.name: dropCollection
db.operation.summary: dropCollection operation-drop-collection.test

nested:
- name: drop
attributes:
Expand Down
15 changes: 0 additions & 15 deletions source/open-telemetry/tests/operation/find.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@
"db.collection.name": "test",
"db.command.name": "find",
"network.transport": "tcp",
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": false
},
Expand All @@ -94,9 +91,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -208,9 +202,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -244,9 +235,6 @@
"db.collection.name": "test",
"db.command.name": "find",
"network.transport": "tcp",
"db.mongodb.cursor_id": {
"$$exists": false
},
"db.response.status_code": {
"$$exists": false
},
Expand All @@ -268,9 +256,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
Loading
Loading