Skip to content

Commit 1295e53

Browse files
committed
- Remove deprecated param, ATTR_DB_CONNECTION_STRING as per review
suggestion
1 parent f018f0f commit 1295e53

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

plugins/node/opentelemetry-instrumentation-oracledb/src/OracleTelemetryTraceHandler.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {
3636
ATTR_DB_OPERATION_NAME,
3737
ATTR_DB_STATEMENT,
3838
ATTR_DB_OPERATION_PARAMETER,
39-
ATTR_DB_CONNECTION_STRING,
4039
ATTR_DB_USER,
4140
} from './semconv';
4241

@@ -120,7 +119,6 @@ export function getOracleTelemetryTraceHandlerClass(
120119
config.pdbName,
121120
config.serviceName
122121
),
123-
[ATTR_DB_CONNECTION_STRING]: config.connectString,
124122
[ATTR_SERVER_ADDRESS]: config.hostName,
125123
[ATTR_SERVER_PORT]: config.port,
126124
};

plugins/node/opentelemetry-instrumentation-oracledb/src/semconv.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ export const ATTR_DB_STATEMENT = 'db.query.text';
9494
*/
9595
export const ATTR_DB_OPERATION_PARAMETER = 'db.operation.parameter';
9696

97-
/**
98-
* The connection string used to connect to the database. It is recommended to remove embedded credentials.
99-
*
100-
*/
101-
export const ATTR_DB_CONNECTION_STRING = 'db.connection_string';
102-
10397
/**
10498
* Username for accessing the database.
10599
*

plugins/node/opentelemetry-instrumentation-oracledb/test/oracle.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import {
5252
ATTR_DB_STATEMENT,
5353
ATTR_DB_OPERATION_PARAMETER,
5454
ATTR_DB_USER,
55-
ATTR_DB_CONNECTION_STRING,
5655
ATTR_DB_OPERATION_NAME,
5756
} from '../src/semconv';
5857

@@ -122,7 +121,6 @@ let spanNamesList: string[]; // span names for roundtrips and public API spans.
122121
const DEFAULT_ATTRIBUTES = {
123122
[ATTR_DB_SYSTEM]: DB_SYSTEM_VALUE_ORACLE,
124123
[ATTR_DB_NAMESPACE]: serviceName,
125-
[ATTR_DB_CONNECTION_STRING]: CONFIG.connectString,
126124
[ATTR_SERVER_ADDRESS]: hostname,
127125
[ATTR_SERVER_PORT]: pno,
128126
[ATTR_DB_USER]: CONFIG.user,
@@ -134,19 +132,16 @@ const DEFAULT_ATTRIBUTES = {
134132
const DEFAULT_ATTRIBUTES_THICK = {
135133
[ATTR_DB_SYSTEM]: DB_SYSTEM_VALUE_ORACLE,
136134
[ATTR_DB_NAMESPACE]: serviceName,
137-
[ATTR_DB_CONNECTION_STRING]: CONFIG.connectString,
138135
[ATTR_DB_USER]: CONFIG.user,
139136
};
140137

141138
const POOL_ATTRIBUTES = {
142139
[ATTR_DB_SYSTEM]: DB_SYSTEM_VALUE_ORACLE,
143-
[ATTR_DB_CONNECTION_STRING]: CONFIG.connectString,
144140
[ATTR_DB_USER]: CONFIG.user,
145141
};
146142

147143
const CONN_FAILED_ATTRIBUTES = {
148144
[ATTR_DB_SYSTEM]: DB_SYSTEM_VALUE_ORACLE,
149-
[ATTR_DB_CONNECTION_STRING]: CONFIG.connectString,
150145
[ATTR_DB_USER]: CONFIG.user,
151146
};
152147

0 commit comments

Comments
 (0)