mononoke/mysql: group ODS counters by shardmap
Summary:
Grouping stats by the shardmap can help to detect and root-cause issues.
This diffs adds a label to the `MysqlConnection` and Mononoke now will log counters by shardmap.
@@ -103,7 +103,7 @@ mod mysql {
.map_err(Error::msg)?;
let pool = ConnectionPool::new(&client, &pool_options)?.bind(locator);
- let conn = MysqlConnection::new(pool);
+ let conn = MysqlConnection::new(pool, "test".to_string());
Ok(Connection::from(conn))
}
