From 3d371fb387b3af7ef96743ce56c1f0b1080d20a0 Mon Sep 17 00:00:00 2001 From: brharrington Date: Fri, 6 Dec 2024 13:36:46 -0600 Subject: [PATCH] lwc-events: add trace log for bad events payload (#1734) In some cases we see serialization fail. Add a trace level log to help debug those that will output the toString value for the payload. --- .../com/netflix/atlas/lwc/events/RemoteLwcEventClient.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/atlas-lwc-events/src/main/scala/com/netflix/atlas/lwc/events/RemoteLwcEventClient.scala b/atlas-lwc-events/src/main/scala/com/netflix/atlas/lwc/events/RemoteLwcEventClient.scala index a470bd534..ccfa9f7ef 100644 --- a/atlas-lwc-events/src/main/scala/com/netflix/atlas/lwc/events/RemoteLwcEventClient.scala +++ b/atlas-lwc-events/src/main/scala/com/netflix/atlas/lwc/events/RemoteLwcEventClient.scala @@ -225,6 +225,7 @@ class RemoteLwcEventClient(registry: Registry, config: Config) } catch { case e: Exception => logger.warn("failed to send events", e) + logger.trace(s"failed event payload: $payload", e) droppedSend.increment(payload.size) } }