diff --git a/specification/trace/semantic_conventions/exceptions.md b/specification/trace/semantic_conventions/exceptions.md index 4c99dbe922b..154e9f931e0 100644 --- a/specification/trace/semantic_conventions/exceptions.md +++ b/specification/trace/semantic_conventions/exceptions.md @@ -27,7 +27,8 @@ Span span = myTracer.startSpan(/*...*/); try { // Code that does the actual work which the Span represents } catch (Throwable e) { - span.recordException(e, Attributes.of("exception.escaped", true)); + span.recordException(e, Attributes.of( + "exception.escaped", AttributeValue.booleanAttributeValue(true))); throw e; } finally { span.end();