The name of a collection (table, container) within the database.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | users |
Aliases | db.collection |
The name of the database being accessed.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | customers |
Aliases | db.name |
The name of the operation being executed.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | SELECT |
Aliases | db.operation |
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.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Has dynamic suffix | Yes |
Example | db.query.parameter.foo='123' |
A database query being executed. Should be paramaterized. The full version of the query is in db.query.text
.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | SELECT * FROM users |
The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in db.query.summary
.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | SELECT * FROM users |
Aliases | db.statement |
The redis connection name.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | No |
Example | my-redis-instance |
The array of command parameters given to a redis command.
Property | Value |
---|---|
Type | string[] |
Has PII | maybe |
Exists in OpenTelemetry | No |
Example | ["test","*"] |
An identifier for the database management system (DBMS) product being used. See OpenTelemetry docs for a list of well-known identifiers.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | postgresql |
Aliases | db.system |
The database user.
Property | Value |
---|---|
Type | string |
Has PII | true |
Exists in OpenTelemetry | Yes |
Example | fancy_user |
These attributes are deprecated and will be removed in a future version. Please use the recommended replacements.
The name of the database being accessed.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | customers |
Deprecated | Yes, use db.namespace instead |
Aliases | db.namespace |
The name of the operation being executed.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | SELECT |
Deprecated | Yes, use db.operation.name instead |
Aliases | db.operation.name |
The array of query bindings.
Property | Value |
---|---|
Type | string[] |
Has PII | maybe |
Exists in OpenTelemetry | No |
Example | ["1","foo"] |
Deprecated | Yes, use db.query.parameter.\<key\> instead |
Deprecation Reason | Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter.<key>. |
The database statement being executed.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | SELECT * FROM users |
Deprecated | Yes, use db.query.text instead |
Aliases | db.query.text |
An identifier for the database management system (DBMS) product being used. See OpenTelemetry docs for a list of well-known identifiers.
Property | Value |
---|---|
Type | string |
Has PII | false |
Exists in OpenTelemetry | Yes |
Example | postgresql |
Deprecated | Yes, use db.system.name instead |
Aliases | db.system.name |