1010import static io .opentelemetry .semconv .incubating .DbIncubatingAttributes .DB_MONGODB_COLLECTION ;
1111import static io .opentelemetry .semconv .incubating .DbIncubatingAttributes .DB_NAME ;
1212import static io .opentelemetry .semconv .incubating .DbIncubatingAttributes .DB_OPERATION ;
13- import static io .opentelemetry .semconv .incubating .DbIncubatingAttributes .DB_REDIS_DATABASE_INDEX ;
1413import static io .opentelemetry .semconv .incubating .DbIncubatingAttributes .DB_SQL_TABLE ;
1514import static io .opentelemetry .semconv .incubating .DbIncubatingAttributes .DB_STATEMENT ;
1615
2322public class SemconvStabilityUtil {
2423 private static final Map <AttributeKey <?>, AttributeKey <?>> oldToNewMap = new HashMap <>();
2524 private static final AttributeKey <String > DB_NAMESPACE = AttributeKey .stringKey ("db.namespace" );
26- private static final AttributeKey <Long > DB_NAMESPACE_LONG = AttributeKey .longKey ("db.namespace" );
2725 private static final AttributeKey <String > DB_QUERY_TEXT = AttributeKey .stringKey ("db.query.text" );
2826 private static final AttributeKey <String > DB_OPERATION_NAME =
2927 AttributeKey .stringKey ("db.operation.name" );
@@ -32,7 +30,6 @@ public class SemconvStabilityUtil {
3230
3331 static {
3432 addKey (oldToNewMap , DB_NAME , DB_NAMESPACE );
35- addKey (oldToNewMap , DB_REDIS_DATABASE_INDEX , DB_NAMESPACE_LONG );
3633 addKey (oldToNewMap , DB_STATEMENT , DB_QUERY_TEXT );
3734 addKey (oldToNewMap , DB_OPERATION , DB_OPERATION_NAME );
3835 addKey (oldToNewMap , DB_SQL_TABLE , DB_COLLECTION_NAME );
0 commit comments