Status: Experimental
The Semantic Conventions for CouchDB 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 "couchdb"
.
Attribute | Type | Description | Examples | Requirement Level | Stability |
---|---|---|---|---|---|
db.operation.name |
string | The HTTP method + the target REST route. [1] | GET /{db}/{docid} |
Conditionally Required [2] |
[1]: In CouchDB, db.operation.name
should be set to the HTTP method + the target REST route according to the API reference documentation. For example, when retrieving a document, db.operation.name
would be set to (literally, i.e., without replacing the placeholders with concrete values): GET /{db}/{docid}
.
[2]: If readily available. Otherwise, if the instrumentation library parses db.query.text
to capture db.operation.name
, then it SHOULD be the first operation name found in the query.