You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`db.mongodb.server_connection_id`|`int64`| Server connection id | Required if available |
188
198
|`db.mongodb.driver_connection_id`|`int64`| Local connection id | Required if available |
189
199
|`db.query.text`|`string`| Database command that was sent to the server. Content should be equivalent to the `document` field of the CommandStartedEvent of the command monitoring. | Conditional |
@@ -193,6 +203,24 @@ Besides the attributes listed in the table above, drivers MAY add other attribut
193
203
[Semantic Conventions for Databases](https://opentelemetry.io/docs/specs/semconv/registry/attributes/db/) that are
194
204
applicable to MongoDB.
195
205
206
+
###### db.namespace
207
+
208
+
This attribute SHOULD be set to current database name except for commands executing against admin db. This field is
209
+
omitted for transaction (abort|commit).
210
+
211
+
###### db.collection.name
212
+
213
+
This attribute should be set to the user's collection if the operation is executing against a collection, this field is
214
+
omitted for commands running against `admin` database or commands that do not target a specific collection.
215
+
216
+
###### db.query.summary
217
+
218
+
This attribute SHOULD contain:
219
+
220
+
-`command_name db.collection_name` if the command is executed on a collection.
221
+
-`command_name db` if there is no specific collection for the command.
222
+
-`command_name` in other cases (e.g., commands executed against `admin` database).
223
+
196
224
###### db.query.text
197
225
198
226
This attribute contains the full database command executed serialized to extended JSON. If not truncated, the content of
0 commit comments