pub const DB_OPERATION: &str = "db.operation";
Expand description

The name of the operation being executed, e.g. the MongoDB command name such as findAndModify, or the SQL keyword.

When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of db.statement just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted.

§Examples

  • findAndModify
  • HMSET
  • SELECT