Skip to content

Commit

Permalink
Use actual OTel-Java API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberon00 committed Sep 14, 2020
1 parent 370759b commit d359f47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specification/trace/semantic_conventions/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d359f47

Please sign in to comment.