From 978a305dd843db691a0933fc2ab7035f962d7da0 Mon Sep 17 00:00:00 2001 From: Brian Harrington Date: Fri, 6 Dec 2024 13:28:31 -0600 Subject: [PATCH] lwc-events: add trace log for bad events payload 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) } }