Skip to content

Commit

Permalink
Revert "Use actual OTel-Java API."
Browse files Browse the repository at this point in the history
This reverts commit d359f47.
  • Loading branch information
Oberon00 committed Sep 15, 2020
1 parent d359f47 commit f78003e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specification/trace/semantic_conventions/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ 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", AttributeValue.booleanAttributeValue(true)));
span.recordException(e, Attributes.of("exception.escaped", true));
throw e;
} finally {
span.end();
Expand Down

0 comments on commit f78003e

Please sign in to comment.