|
142 | 142 | <ACTIVITY source="Azure.Cosmos.Operation" operationName="Operation.ExecuteAsync" displayName="ExecuteAsync containerName">
|
143 | 143 | <ATTRIBUTE key="az.namespace">Microsoft.DocumentDB</ATTRIBUTE>
|
144 | 144 | <ATTRIBUTE key="az.schema_url">https://opentelemetry.io/schemas/1.23.0</ATTRIBUTE>
|
145 |
| - <ATTRIBUTE key="db.operation">ExecuteAsync</ATTRIBUTE> |
146 |
| - <ATTRIBUTE key="db.name">databaseName</ATTRIBUTE> |
147 |
| - <ATTRIBUTE key="db.cosmosdb.container">containerName</ATTRIBUTE> |
| 145 | + <ATTRIBUTE key="db.operation.name">ExecuteAsync</ATTRIBUTE> |
| 146 | + <ATTRIBUTE key="db.namespace">databaseName</ATTRIBUTE> |
| 147 | + <ATTRIBUTE key="db.collection.name">containerName</ATTRIBUTE> |
148 | 148 | <ATTRIBUTE key="db.system">cosmosdb</ATTRIBUTE>
|
149 | 149 | <ATTRIBUTE key="db.cosmosdb.machine_id">Some Value</ATTRIBUTE>
|
150 | 150 | <ATTRIBUTE key="server.address">127.0.0.1</ATTRIBUTE>
|
151 | 151 | <ATTRIBUTE key="db.cosmosdb.client_id">Some Value</ATTRIBUTE>
|
152 | 152 | <ATTRIBUTE key="user_agent.original">Some Value</ATTRIBUTE>
|
153 | 153 | <ATTRIBUTE key="db.cosmosdb.connection_mode">Direct</ATTRIBUTE>
|
154 | 154 | <ATTRIBUTE key="db.cosmosdb.operation_type">Batch</ATTRIBUTE>
|
155 |
| - <ATTRIBUTE key="db.cosmosdb.batch_size">90</ATTRIBUTE> |
| 155 | + <ATTRIBUTE key="db.operation.batch.size">90</ATTRIBUTE> |
| 156 | + <ATTRIBUTE key="db.cosmosdb.status_code">Some Value</ATTRIBUTE> |
| 157 | + <ATTRIBUTE key="db.cosmosdb.sub_status_code">Some Value</ATTRIBUTE> |
| 158 | + <ATTRIBUTE key="db.cosmosdb.request_charge">Some Value</ATTRIBUTE> |
| 159 | + <ATTRIBUTE key="db.cosmosdb.item_count">Some Value</ATTRIBUTE> |
| 160 | + <ATTRIBUTE key="db.cosmosdb.activity_id">Some Value</ATTRIBUTE> |
| 161 | + <ATTRIBUTE key="db.cosmosdb.regions_contacted">South Central US</ATTRIBUTE> |
| 162 | + <ATTRIBUTE key="error.type">400/1001</ATTRIBUTE> |
| 163 | + </ACTIVITY> |
| 164 | + <EVENT name="FailedRequest" /> |
| 165 | +</OTelActivities></Output> |
| 166 | + </Result> |
| 167 | + <Result> |
| 168 | + <Input> |
| 169 | + <Description>Batch Homogenous Operation</Description> |
| 170 | + <Setup><![CDATA[ |
| 171 | + string pkValue = "DiagnosticTestPk"; |
| 172 | + TransactionalBatch batch = container.CreateTransactionalBatch(new PartitionKey(pkValue)); |
| 173 | + List<ToDoActivity> createItems = new List<ToDoActivity>(); |
| 174 | + for (int i = 0; i < 50; i++) |
| 175 | + { |
| 176 | + ToDoActivity item = ToDoActivity.CreateRandomToDoActivity(pk: pkValue); |
| 177 | + createItems.Add(item); |
| 178 | + batch.CreateItem<ToDoActivity>(item); |
| 179 | + } |
| 180 | +
|
| 181 | + TransactionalBatchRequestOptions requestOptions = null; |
| 182 | + TransactionalBatchResponse response = await batch.ExecuteAsync(requestOptions); |
| 183 | +
|
| 184 | + Assert.IsNotNull(response); |
| 185 | + ITrace trace = ((CosmosTraceDiagnostics)response.Diagnostics).Value; |
| 186 | +]]></Setup> |
| 187 | + </Input> |
| 188 | + <Output> |
| 189 | + <Text><![CDATA[. |
| 190 | +└── ExecuteAsync(00000000-0000-0000-0000-000000000000) Transport-Component 00:00:00:000 0.00 milliseconds |
| 191 | + │ ( |
| 192 | + │ [Client Configuration] |
| 193 | + │ Redacted To Not Change The Baselines From Run To Run |
| 194 | + │ [DistributedTraceId] |
| 195 | + │ Redacted To Not Change The Baselines From Run To Run |
| 196 | + │ ) |
| 197 | + └── Execute Next Batch(00000000-0000-0000-0000-000000000000) Batch-Component 00:00:00:000 0.00 milliseconds |
| 198 | + ├── Create Batch Request(00000000-0000-0000-0000-000000000000) Batch-Component 00:00:00:000 0.00 milliseconds |
| 199 | + └── Execute Batch Request(00000000-0000-0000-0000-000000000000) Batch-Component 00:00:00:000 0.00 milliseconds |
| 200 | + ├── Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler(00000000-0000-0000-0000-000000000000) RequestHandler-Component 00:00:00:000 0.00 milliseconds |
| 201 | + │ └── Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler(00000000-0000-0000-0000-000000000000) RequestHandler-Component 00:00:00:000 0.00 milliseconds |
| 202 | + │ │ ( |
| 203 | + │ │ [System Info] |
| 204 | + │ │ Redacted To Not Change The Baselines From Run To Run |
| 205 | + │ │ ) |
| 206 | + │ └── Microsoft.Azure.Cosmos.Handlers.TelemetryHandler(00000000-0000-0000-0000-000000000000) RequestHandler-Component 00:00:00:000 0.00 milliseconds |
| 207 | + │ └── Microsoft.Azure.Cosmos.Handlers.RetryHandler(00000000-0000-0000-0000-000000000000) RequestHandler-Component 00:00:00:000 0.00 milliseconds |
| 208 | + │ └── Microsoft.Azure.Cosmos.Handlers.RouterHandler(00000000-0000-0000-0000-000000000000) RequestHandler-Component 00:00:00:000 0.00 milliseconds |
| 209 | + │ └── Microsoft.Azure.Cosmos.Handlers.TransportHandler(00000000-0000-0000-0000-000000000000) RequestHandler-Component 00:00:00:000 0.00 milliseconds |
| 210 | + │ └── Microsoft.Azure.Documents.ServerStoreModel Transport Request(00000000-0000-0000-0000-000000000000) Transport-Component 00:00:00:000 0.00 milliseconds |
| 211 | + │ ( |
| 212 | + │ [Client Side Request Stats] |
| 213 | + │ Redacted To Not Change The Baselines From Run To Run |
| 214 | + │ ) |
| 215 | + └── Create Trace(00000000-0000-0000-0000-000000000000) Batch-Component 00:00:00:000 0.00 milliseconds |
| 216 | +]]></Text> |
| 217 | + <Json><![CDATA[{ |
| 218 | + "Summary": {}, |
| 219 | + "name": "ExecuteAsync", |
| 220 | + "start datetime": "0001-01-01T00:00:00Z", |
| 221 | + "duration in milliseconds": 0, |
| 222 | + "data": { |
| 223 | + "Client Configuration": "Redacted To Not Change The Baselines From Run To Run", |
| 224 | + "DistributedTraceId": "Redacted To Not Change The Baselines From Run To Run" |
| 225 | + }, |
| 226 | + "children": [ |
| 227 | + { |
| 228 | + "name": "Execute Next Batch", |
| 229 | + "duration in milliseconds": 0, |
| 230 | + "children": [ |
| 231 | + { |
| 232 | + "name": "Create Batch Request", |
| 233 | + "duration in milliseconds": 0 |
| 234 | + }, |
| 235 | + { |
| 236 | + "name": "Execute Batch Request", |
| 237 | + "duration in milliseconds": 0, |
| 238 | + "children": [ |
| 239 | + { |
| 240 | + "name": "Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler", |
| 241 | + "duration in milliseconds": 0, |
| 242 | + "children": [ |
| 243 | + { |
| 244 | + "name": "Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler", |
| 245 | + "duration in milliseconds": 0, |
| 246 | + "data": { |
| 247 | + "System Info": "Redacted To Not Change The Baselines From Run To Run" |
| 248 | + }, |
| 249 | + "children": [ |
| 250 | + { |
| 251 | + "name": "Microsoft.Azure.Cosmos.Handlers.TelemetryHandler", |
| 252 | + "duration in milliseconds": 0, |
| 253 | + "children": [ |
| 254 | + { |
| 255 | + "name": "Microsoft.Azure.Cosmos.Handlers.RetryHandler", |
| 256 | + "duration in milliseconds": 0, |
| 257 | + "children": [ |
| 258 | + { |
| 259 | + "name": "Microsoft.Azure.Cosmos.Handlers.RouterHandler", |
| 260 | + "duration in milliseconds": 0, |
| 261 | + "children": [ |
| 262 | + { |
| 263 | + "name": "Microsoft.Azure.Cosmos.Handlers.TransportHandler", |
| 264 | + "duration in milliseconds": 0, |
| 265 | + "children": [ |
| 266 | + { |
| 267 | + "name": "Microsoft.Azure.Documents.ServerStoreModel Transport Request", |
| 268 | + "duration in milliseconds": 0, |
| 269 | + "data": { |
| 270 | + "Client Side Request Stats": "Redacted To Not Change The Baselines From Run To Run" |
| 271 | + } |
| 272 | + } |
| 273 | + ] |
| 274 | + } |
| 275 | + ] |
| 276 | + } |
| 277 | + ] |
| 278 | + } |
| 279 | + ] |
| 280 | + } |
| 281 | + ] |
| 282 | + } |
| 283 | + ] |
| 284 | + }, |
| 285 | + { |
| 286 | + "name": "Create Trace", |
| 287 | + "duration in milliseconds": 0 |
| 288 | + } |
| 289 | + ] |
| 290 | + } |
| 291 | + ] |
| 292 | + } |
| 293 | + ] |
| 294 | +}]]></Json><OTelActivities> |
| 295 | + <ACTIVITY source="Azure.Cosmos.Operation" operationName="Operation.ExecuteAsync" displayName="ExecuteAsync containerName"> |
| 296 | + <ATTRIBUTE key="az.namespace">Microsoft.DocumentDB</ATTRIBUTE> |
| 297 | + <ATTRIBUTE key="az.schema_url">https://opentelemetry.io/schemas/1.23.0</ATTRIBUTE> |
| 298 | + <ATTRIBUTE key="db.operation.name">ExecuteAsync</ATTRIBUTE> |
| 299 | + <ATTRIBUTE key="db.namespace">databaseName</ATTRIBUTE> |
| 300 | + <ATTRIBUTE key="db.collection.name">containerName</ATTRIBUTE> |
| 301 | + <ATTRIBUTE key="db.system">cosmosdb</ATTRIBUTE> |
| 302 | + <ATTRIBUTE key="db.cosmosdb.machine_id">Some Value</ATTRIBUTE> |
| 303 | + <ATTRIBUTE key="server.address">127.0.0.1</ATTRIBUTE> |
| 304 | + <ATTRIBUTE key="db.cosmosdb.client_id">Some Value</ATTRIBUTE> |
| 305 | + <ATTRIBUTE key="user_agent.original">Some Value</ATTRIBUTE> |
| 306 | + <ATTRIBUTE key="db.cosmosdb.connection_mode">Direct</ATTRIBUTE> |
| 307 | + <ATTRIBUTE key="db.cosmosdb.operation_type">Batch.Create</ATTRIBUTE> |
| 308 | + <ATTRIBUTE key="db.operation.batch.size">50</ATTRIBUTE> |
156 | 309 | <ATTRIBUTE key="db.cosmosdb.status_code">Some Value</ATTRIBUTE>
|
157 | 310 | <ATTRIBUTE key="db.cosmosdb.sub_status_code">Some Value</ATTRIBUTE>
|
158 | 311 | <ATTRIBUTE key="db.cosmosdb.request_charge">Some Value</ATTRIBUTE>
|
|
0 commit comments