-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move CodeWhispererTelemetryService metrics to OTel #5041
base: main
Are you sure you want to change the base?
Conversation
Qodana Community for JVM15 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
@@ -167,7 +167,7 @@ | |||
getRequestContext(triggerTypeInfo, editor, project, psiFile, latencyContext) | |||
} catch (e: Exception) { | |||
LOG.debug { e.message.toString() } | |||
CodeWhispererTelemetryService.getInstance().sendFailedServiceInvocationEvent(project, e::class.simpleName) | |||
CodeWhispererTelemetryService.getInstance().sendFailedServiceInvocationEvent(e) |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -174,7 +174,7 @@ | |||
getRequestContext(triggerTypeInfo, editor, project, psiFile) | |||
} catch (e: Exception) { | |||
LOG.debug { e.message.toString() } | |||
CodeWhispererTelemetryServiceNew.getInstance().sendFailedServiceInvocationEvent(project, e::class.simpleName) | |||
CodeWhispererTelemetryServiceNew.getInstance().sendFailedServiceInvocationEvent(e) |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
...are/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryService.kt
Fixed
Show fixed
Hide fixed
.codewhispererSessionId(responseContext.sessionId) | ||
.codewhispererSuggestionIndex(index) | ||
.codewhispererSuggestionReferenceCount(recommendation.references().size) | ||
.codewhispererSuggestionReferences(jacksonObjectMapper().writeValueAsString(recommendation.references().map { it.licenseName() }.toSet().toList())) |
Check notice
Code scanning / QDJVMC
Nested lambda has shadowed implicit parameter Note
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.