Skip to content

Commit

Permalink
Fix illegal reflective access in ElasticSearch request monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
elahrvivaz committed Oct 10, 2024
1 parent d7a56a4 commit 61c848f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ object ExtendedRequestData extends LazyLogging {
new JsonPrimitive(bbox.toString)
}
})
.registerTypeAdapter(classOf[Throwable], new JsonSerializer[Throwable] {
.registerTypeHierarchyAdapter(classOf[Throwable], new JsonSerializer[Throwable] {
override def serialize(ex: Throwable, `type`: Type, context: JsonSerializationContext): JsonElement = {
new JsonPrimitive(ex.getMessage)
}
Expand Down

0 comments on commit 61c848f

Please sign in to comment.