@@ -75,8 +75,8 @@ interface DatabricksTelemetryLog {
7575 */
7676interface DatabricksTelemetryPayload {
7777 uploadTime : number ;
78- items : string [ ] ; // Always empty - required field
79- protoLogs : string [ ] ; // JSON-stringified TelemetryFrontendLog objects
78+ items : string [ ] ; // Always empty - required field
79+ protoLogs : string [ ] ; // JSON-stringified TelemetryFrontendLog objects
8080}
8181
8282/**
@@ -104,7 +104,7 @@ export default class DatabricksTelemetryExporter {
104104 private context : IClientContext ,
105105 private host : string ,
106106 private circuitBreakerRegistry : CircuitBreakerRegistry ,
107- fetchFunction ?: typeof fetch
107+ fetchFunction ?: typeof fetch ,
108108 ) {
109109 this . circuitBreaker = circuitBreakerRegistry . getCircuitBreaker ( host ) ;
110110 this . fetchFn = fetchFunction || fetch ;
@@ -177,13 +177,13 @@ export default class DatabricksTelemetryExporter {
177177 }
178178
179179 // Calculate backoff with exponential + jitter (100ms - 1000ms)
180- const baseDelay = Math . min ( 100 * 2 ** attempt , 1000 ) ;
180+ const baseDelay = Math . min ( 100 * 2 ** attempt , 1000 ) ;
181181 const jitter = Math . random ( ) * 100 ;
182182 const delay = baseDelay + jitter ;
183183
184184 logger . log (
185185 LogLevel . debug ,
186- `Retrying telemetry export (attempt ${ attempt + 1 } /${ maxRetries } ) after ${ Math . round ( delay ) } ms`
186+ `Retrying telemetry export (attempt ${ attempt + 1 } /${ maxRetries } ) after ${ Math . round ( delay ) } ms` ,
187187 ) ;
188188
189189 await this . sleep ( delay ) ;
@@ -205,8 +205,7 @@ export default class DatabricksTelemetryExporter {
205205 const logger = this . context . getLogger ( ) ;
206206
207207 // Determine endpoint based on authentication mode
208- const authenticatedExport =
209- config . telemetryAuthenticatedExport ?? DEFAULT_TELEMETRY_CONFIG . authenticatedExport ;
208+ const authenticatedExport = config . telemetryAuthenticatedExport ?? DEFAULT_TELEMETRY_CONFIG . authenticatedExport ;
210209 const endpoint = authenticatedExport
211210 ? buildUrl ( this . host , '/telemetry-ext' )
212211 : buildUrl ( this . host , '/telemetry-unauth' ) ;
@@ -217,13 +216,15 @@ export default class DatabricksTelemetryExporter {
217216
218217 const payload : DatabricksTelemetryPayload = {
219218 uploadTime : Date . now ( ) ,
220- items : [ ] , // Required but unused
219+ items : [ ] , // Required but unused
221220 protoLogs,
222221 } ;
223222
224223 logger . log (
225224 LogLevel . debug ,
226- `Exporting ${ metrics . length } telemetry metrics to ${ authenticatedExport ? 'authenticated' : 'unauthenticated' } endpoint`
225+ `Exporting ${ metrics . length } telemetry metrics to ${
226+ authenticatedExport ? 'authenticated' : 'unauthenticated'
227+ } endpoint`,
227228 ) ;
228229
229230 // Get authentication headers if using authenticated endpoint
0 commit comments