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",
"pii": {
"key": "maybe"
},
"is_in_otel": true,
"visibility": "public",
"example": 3,
"changelog": [
{
"version": "next",
"prs": [
407
],
"description": "Added db.operation.batch.size attribute"
}
]
}
string PII: Maybe 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",
"pii": {
"key": "maybe"
},
"is_in_otel": true,
"visibility": "public",
"example": "db.query.parameter.foo='123'",
"changelog": [
{
"version": "0.1.0",
"prs": [
103,
127
]
}
]
}
A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.
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.
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.
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.