Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.56 KB

mongodb.md

File metadata and controls

40 lines (31 loc) · 1.56 KB

Semantic Conventions for MongoDB

Status: Experimental

The Semantic Conventions for MongoDB extend and override the Database Semantic Conventions that describe common database operations attributes in addition to the Semantic Conventions described on this page.

db.system MUST be set to "mongodb".

Call-level attributes

Attribute Type Description Examples Requirement Level
db.mongodb.collection string The collection being accessed within the database stated in db.name. customers; products Required

Example

Key Value
Span name "products.findAndModify"
db.system "mongodb"
db.connection_string not set
db.user "the_user"
server.address "mongodb0.example.com"
server.socket.address "192.0.2.14"
server.port 27017
network.transport "IP.TCP"
db.name "shopDb"
db.statement not set
db.operation "findAndModify"
db.mongodb.collection "products"