From 31132be0974aa77bdd4f9152f61129d6f8278214 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 9 Jun 2023 20:42:36 -0700 Subject: [PATCH] revert --- .../javaagent/instrumentation/jul/JavaUtilLoggingHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingHelper.java b/instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingHelper.java index 4e5f6b3ceba1..bc9867c2160e 100644 --- a/instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingHelper.java +++ b/instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingHelper.java @@ -84,6 +84,8 @@ private static void mapLogRecord(LogRecordBuilder builder, LogRecord logRecord) // throwable Throwable throwable = logRecord.getThrown(); if (throwable != null) { + // TODO (trask) extract method for recording exception into + // io.opentelemetry:opentelemetry-api attributes.put(SemanticAttributes.EXCEPTION_TYPE, throwable.getClass().getName()); attributes.put(SemanticAttributes.EXCEPTION_MESSAGE, throwable.getMessage()); StringWriter writer = new StringWriter();