integer Scrub: Manual Visibility: Public OTel: True
The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1.
{
"key": "db.operation.batch.size",
"brief": "The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1.",
"type": "integer",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": true,
"visibility": "public",
"example": 3,
"changelog": [
{
"version": "0.11.0",
"prs": [
407
],
"description": "Added db.operation.batch.size attribute"
}
]
}
string Scrub: Auto Visibility: Public OTel: True Dynamic
A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.
Exampledb.query.parameter.foo='123'
Dynamic SuffixYes - the key contains dynamic parts
{
"key": "db.query.parameter.<key>",
"brief": "A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.",
"has_dynamic_suffix": true,
"type": "string",
"apply_scrubbing": {
"key": "auto"
},
"is_in_otel": true,
"visibility": "public",
"example": "db.query.parameter.foo='123'",
"changelog": [
{
"version": "0.1.0",
"prs": [
103,
127
]
}
]
}
string Scrub: Manual Visibility: Public OTel: True
A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.
string Scrub: Manual Visibility: Public OTel: True
The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.
string Scrub: Manual Visibility: Public OTel: True
An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.
string Scrub: Manual Visibility: Public OTel: True
An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.