@@ -39,8 +39,8 @@ import {
3939 DBSYSTEMVALUES_ORACLE ,
4040} from '@opentelemetry/semantic-conventions' ;
4141import * as oracledbTypes from 'oracledb' ;
42- import { OracleInstrumentationConfig , spanConnectionConfig } from './types' ;
43- import { traceSpanData , spanCallLevelConfig } from './internal-types' ;
42+ import { OracleInstrumentationConfig , SpanConnectionConfig } from './types' ;
43+ import { TraceSpanData , SpanCallLevelConfig } from './internal-types' ;
4444import { SpanNames } from './constants' ;
4545
4646const newmoduleExports : any = oracledbTypes ;
@@ -72,7 +72,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
7272
7373 // Returns the connection related Attributes for
7474 // semantic standards and module custom keys.
75- private _getConnectionSpanAttributes ( config : spanConnectionConfig ) {
75+ private _getConnectionSpanAttributes ( config : SpanConnectionConfig ) {
7676 return {
7777 [ SEMATTRS_DB_SYSTEM ] : DBSYSTEMVALUES_ORACLE ,
7878 [ SEMATTRS_NET_TRANSPORT ] : config . protocol ,
@@ -124,7 +124,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
124124 // internal roundtrip spans generated for oracledb exported functions.
125125 private _setCallLevelAttributes (
126126 span : Span ,
127- callConfig ?: spanCallLevelConfig ,
127+ callConfig ?: SpanCallLevelConfig ,
128128 roundTrip = false
129129 ) {
130130 if ( ! callConfig ) return ;
@@ -150,7 +150,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
150150 }
151151 }
152152
153- private _handleExecuteCustomRequest ( span : Span , traceContext : traceSpanData ) {
153+ private _handleExecuteCustomRequest ( span : Span , traceContext : TraceSpanData ) {
154154 if ( typeof this . _instrumentConfig . requestHook === 'function' ) {
155155 safeExecuteInTheMiddle (
156156 ( ) => {
@@ -169,7 +169,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
169169 }
170170 }
171171
172- private _handleExecuteCustomResult ( span : Span , traceContext : traceSpanData ) {
172+ private _handleExecuteCustomResult ( span : Span , traceContext : TraceSpanData ) {
173173 if ( typeof this . _instrumentConfig . responseHook === 'function' ) {
174174 safeExecuteInTheMiddle (
175175 ( ) => {
@@ -192,7 +192,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
192192 // roundTrip flag will skip dumping bind values for
193193 // internal roundtrip spans generated for exported functions.
194194 private _updateFinalSpanAttributes (
195- traceContext : traceSpanData ,
195+ traceContext : TraceSpanData ,
196196 roundTrip = false
197197 ) {
198198 const span = traceContext . userContext . span ;
@@ -230,7 +230,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
230230
231231 // This method is invoked before calling an exported function
232232 // from oracledb module.
233- onEnterFn ( traceContext : traceSpanData ) {
233+ onEnterFn ( traceContext : TraceSpanData ) {
234234 if ( this . _shouldSkipInstrumentation ( ) ) {
235235 return ;
236236 }
@@ -272,7 +272,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
272272
273273 // This method is invoked after exported function from oracledb module
274274 // completes.
275- onExitFn ( traceContext : traceSpanData ) {
275+ onExitFn ( traceContext : TraceSpanData ) {
276276 if (
277277 this . _shouldSkipInstrumentation ( ) ||
278278 ! traceContext . userContext ||
@@ -296,7 +296,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
296296
297297 // This method is invoked before a round trip call to DB is done
298298 // from the oracledb module as part of sql execution.
299- onBeginRoundTrip ( traceContext : traceSpanData ) {
299+ onBeginRoundTrip ( traceContext : TraceSpanData ) {
300300 if ( this . _shouldSkipInstrumentation ( ) ) {
301301 return ;
302302 }
@@ -312,7 +312,7 @@ export class OracleTelemetryTraceHandler extends newmoduleExports.traceHandler
312312
313313 // This method is invoked after a round trip call to DB is done
314314 // from the oracledb module as part of sql execution.
315- onEndRoundTrip ( traceContext : traceSpanData ) {
315+ onEndRoundTrip ( traceContext : TraceSpanData ) {
316316 if (
317317 this . _shouldSkipInstrumentation ( ) ||
318318 ! traceContext . userContext ||
0 commit comments