Skip to content

Commit 4b66203

Browse files
committed
Move CodeWhispererTelemetryService metrics to OTel
1 parent 8b30755 commit 4b66203

File tree

4 files changed

+293
-366
lines changed

4 files changed

+293
-366
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
166166
getRequestContext(triggerTypeInfo, editor, project, psiFile, latencyContext)
167167
} catch (e: Exception) {
168168
LOG.debug { e.message.toString() }
169-
CodeWhispererTelemetryService.getInstance().sendFailedServiceInvocationEvent(project, e::class.simpleName)
169+
CodeWhispererTelemetryService.getInstance().sendFailedServiceInvocationEvent(e)
170170
return
171171
}
172172

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererServiceNew.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class CodeWhispererServiceNew(private val cs: CoroutineScope) : Disposable {
174174
getRequestContext(triggerTypeInfo, editor, project, psiFile)
175175
} catch (e: Exception) {
176176
LOG.debug { e.message.toString() }
177-
CodeWhispererTelemetryServiceNew.getInstance().sendFailedServiceInvocationEvent(project, e::class.simpleName)
177+
CodeWhispererTelemetryServiceNew.getInstance().sendFailedServiceInvocationEvent(e)
178178
return
179179
}
180180
val caretContext = requestContext.fileContextInfo.caretContext

0 commit comments

Comments
 (0)