Skip to content

Commit 53e5434

Browse files
committed
CSHARP-3124: Opentelemetry implementation
1 parent 2c6ad30 commit 53e5434

File tree

80 files changed

+7849
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+7849
-170
lines changed
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"description": "operation aggregate",
3+
"schemaVersion": "1.27",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"useMultipleMongoses": false,
9+
"observeTracingMessages": {
10+
"enableCommandPayload": true
11+
}
12+
}
13+
},
14+
{
15+
"database": {
16+
"id": "database0",
17+
"client": "client0",
18+
"databaseName": "operation-aggregate"
19+
}
20+
},
21+
{
22+
"collection": {
23+
"id": "collection0",
24+
"database": "database0",
25+
"collectionName": "test"
26+
}
27+
}
28+
],
29+
"tests": [
30+
{
31+
"description": "aggregation",
32+
"operations": [
33+
{
34+
"name": "aggregate",
35+
"object": "collection0",
36+
"arguments": {
37+
"pipeline": [
38+
{
39+
"$match": {
40+
"_id": 1
41+
}
42+
}
43+
]
44+
}
45+
}
46+
],
47+
"expectTracingMessages": [
48+
{
49+
"client": "client0",
50+
"ignoreExtraSpans": false,
51+
"spans": [
52+
{
53+
"name": "aggregate operation-aggregate.test",
54+
"attributes": {
55+
"db.system": "mongodb",
56+
"db.namespace": "operation-aggregate",
57+
"db.collection.name": "test",
58+
"db.operation.name": "aggregate",
59+
"db.operation.summary": "aggregate operation-aggregate.test"
60+
},
61+
"nested": [
62+
{
63+
"name": "aggregate",
64+
"attributes": {
65+
"db.system": "mongodb",
66+
"db.namespace": "operation-aggregate",
67+
"db.collection.name": "test",
68+
"db.command.name": "aggregate",
69+
"network.transport": "tcp",
70+
"db.response.status_code": {
71+
"$$exists": false
72+
},
73+
"exception.message": {
74+
"$$exists": false
75+
},
76+
"exception.type": {
77+
"$$exists": false
78+
},
79+
"exception.stacktrace": {
80+
"$$exists": false
81+
},
82+
"server.address": {
83+
"$$type": "string"
84+
},
85+
"server.port": {
86+
"$$type": [
87+
"int",
88+
"long"
89+
]
90+
},
91+
"db.query.summary": "aggregate operation-aggregate.test",
92+
"db.query.text": {
93+
"$$matchAsDocument": {
94+
"$$matchAsRoot": {
95+
"aggregate": "test",
96+
"pipeline": [
97+
{
98+
"$match": {
99+
"_id": 1
100+
}
101+
}
102+
]
103+
}
104+
}
105+
},
106+
"db.mongodb.server_connection_id": {
107+
"$$type": [
108+
"int",
109+
"long"
110+
]
111+
},
112+
"db.mongodb.driver_connection_id": {
113+
"$$type": [
114+
"int",
115+
"long"
116+
]
117+
}
118+
}
119+
}
120+
]
121+
}
122+
]
123+
}
124+
]
125+
}
126+
]
127+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
description: operation aggregate
2+
schemaVersion: '1.27'
3+
createEntities:
4+
- client:
5+
id: &client0 client0
6+
useMultipleMongoses: false
7+
observeTracingMessages:
8+
enableCommandPayload: true
9+
- database:
10+
id: &database0 database0
11+
client: *client0
12+
databaseName: operation-aggregate
13+
- collection:
14+
id: &collection0 collection0
15+
database: *database0
16+
collectionName: &collectionName0 test
17+
18+
tests:
19+
- description: aggregation
20+
operations:
21+
- name: aggregate
22+
object: *collection0
23+
arguments:
24+
pipeline: &pipeline0
25+
- $match: { _id: 1 }
26+
27+
expectTracingMessages:
28+
- client: *client0
29+
ignoreExtraSpans: false
30+
spans:
31+
- name: aggregate operation-aggregate.test
32+
attributes:
33+
db.system: mongodb
34+
db.namespace: operation-aggregate
35+
db.collection.name: test
36+
db.operation.name: aggregate
37+
db.operation.summary: aggregate operation-aggregate.test
38+
39+
nested:
40+
- name: aggregate
41+
attributes:
42+
db.system: mongodb
43+
db.namespace: operation-aggregate
44+
db.collection.name: *collectionName0
45+
db.command.name: aggregate
46+
network.transport: tcp
47+
db.response.status_code: { $$exists: false }
48+
exception.message: { $$exists: false }
49+
exception.type: { $$exists: false }
50+
exception.stacktrace: { $$exists: false }
51+
server.address: { $$type: string }
52+
server.port: { $$type: [int, long] }
53+
db.query.summary: aggregate operation-aggregate.test
54+
db.query.text:
55+
$$matchAsDocument:
56+
$$matchAsRoot:
57+
aggregate: test
58+
pipeline: *pipeline0
59+
db.mongodb.server_connection_id:
60+
$$type: [ int, long ]
61+
db.mongodb.driver_connection_id:
62+
$$type: [ int, long ]

0 commit comments

Comments
 (0)