Skip to content

Commit

Permalink
Address feedback of @iNikem
Browse files Browse the repository at this point in the history
  • Loading branch information
thisthat committed Jul 18, 2020
1 parent 09f3815 commit f117a8b
Show file tree
Hide file tree
Showing 52 changed files with 2,772 additions and 3,451 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,112 +22,75 @@ public interface DbCassandraSemanticConvention {

Span getSpan();


/**
* Sets a value for db.system
*
* @param dbSystem An identifier for the database management system (DBMS) product being used. See
* below for a list of well-known identifiers..
* @param dbSystem An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers..
*/
public DbCassandraSemanticConvention setDbSystem(String dbSystem);

/**
* Sets a value for db.connection_string
*
* @param dbConnectionString The connection string used to connect to the database..
* <p>It is recommended to remove embedded credentials.
* <p> It is recommended to remove embedded credentials.
*/
public DbCassandraSemanticConvention setDbConnectionString(String dbConnectionString);

/**
* Sets a value for db.user
*
* @param dbUser Username for accessing the database..
*/
public DbCassandraSemanticConvention setDbUser(String dbUser);

/**
* Sets a value for db.mssql.instance_name
*
* @param dbMssqlInstanceName The Microsoft SQL Server [instance
* name](https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15)
* connecting to. This name is used to determine the port of a named instance..
* <p>If setting a `db.mssql.instance_name`, `net.peer.port` is no longer required (but still
* recommended if non-standard).
*/
public DbCassandraSemanticConvention setDbMssqlInstanceName(String dbMssqlInstanceName);

/**
* Sets a value for db.jdbc.driver_classname
*
* @param dbJdbcDriverClassname The fully-qualified class name of the JDBC driver used to
* connect..
*/
public DbCassandraSemanticConvention setDbJdbcDriverClassname(String dbJdbcDriverClassname);

/**
* Sets a value for db.name
*
* @param dbName If no tech-specific attribute is defined, this attribute is used to report the
* name of the database being accessed. For commands that switch the database, this should be
* set to the target database (even if the command fails)..
* <p>In some SQL databases, the database name to be used is called "schema name".
* @param dbName If no tech-specific attribute is defined, this attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails)..
* <p> In some SQL databases, the database name to be used is called "schema name".
*/
public DbCassandraSemanticConvention setDbName(String dbName);

/**
* Sets a value for db.statement
*
* @param dbStatement The database statement being executed..
* <p>The value may be sanitized to exclude sensitive information.
* <p> The value may be sanitized to exclude sensitive information.
*/
public DbCassandraSemanticConvention setDbStatement(String dbStatement);

/**
* Sets a value for db.operation
*
* @param dbOperation The name of the operation being executed, e.g. the [MongoDB command
* name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as
* `findAndModify`..
* <p>While it would semantically make sense to set this, e.g., to a SQL keyword like `SELECT`
* or `INSERT`, it is not recommended to attempt any client-side parsing of `db.statement`
* just to get this property (the back end can do that if required).
* @param dbOperation The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`..
* <p> While it would semantically make sense to set this, e.g., to a SQL keyword like `SELECT` or `INSERT`, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property (the back end can do that if required).
*/
public DbCassandraSemanticConvention setDbOperation(String dbOperation);

/**
* Sets a value for net.peer.name
*
* @param netPeerName Remote hostname or similar, see note below..
*/
public DbCassandraSemanticConvention setNetPeerName(String netPeerName);

/**
* Sets a value for net.peer.ip
*
* @param netPeerIp Remote address of the peer (dotted decimal for IPv4 or
* [RFC5952](https://tools.ietf.org/html/rfc5952) for IPv6).
* @param netPeerIp Remote address of the peer (dotted decimal for IPv4 or [RFC5952](https://tools.ietf.org/html/rfc5952) for IPv6).
*/
public DbCassandraSemanticConvention setNetPeerIp(String netPeerIp);

/**
* Sets a value for net.peer.port
*
* @param netPeerPort Remote port number..
*/
public DbCassandraSemanticConvention setNetPeerPort(long netPeerPort);

/**
* Sets a value for net.transport
*
* @param netTransport Transport protocol used. See note below..
*/
public DbCassandraSemanticConvention setNetTransport(String netTransport);

/**
* Sets a value for db.cassandra.keyspace
*
* @param dbCassandraKeyspace The name of the keyspace being accessed. To be used instead of the
* generic `db.name` attribute..
* @param dbCassandraKeyspace The name of the keyspace being accessed. To be used instead of the generic `db.name` attribute..
*/
public DbCassandraSemanticConvention setDbCassandraKeyspace(String dbCassandraKeyspace);
}

}
Loading

0 comments on commit f117a8b

Please sign in to comment.