|
5 | 5 |
|
6 | 6 | package io.opentelemetry.semconv.incubating; |
7 | 7 |
|
8 | | -import static io.opentelemetry.api.common.AttributeKey.booleanKey; |
9 | 8 | import static io.opentelemetry.api.common.AttributeKey.stringKey; |
10 | 9 |
|
11 | 10 | import io.opentelemetry.api.common.AttributeKey; |
|
14 | 13 | // buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2 |
15 | 14 | @SuppressWarnings("unused") |
16 | 15 | public final class ExceptionIncubatingAttributes { |
17 | | - /** |
18 | | - * SHOULD be set to true if the exception event is recorded at a point where it is known that the |
19 | | - * exception is escaping the scope of the span. |
20 | | - * |
21 | | - * <p>Notes: |
22 | | - * |
23 | | - * <p>An exception is considered to have escaped (or left) the scope of a span, if that span is |
24 | | - * ended while the exception is still logically "in flight". This may be actually "in flight" in |
25 | | - * some languages (e.g. if the exception is passed to a Context manager's {@code __exit__} method |
26 | | - * in Python) but will usually be caught at the point of recording the exception in most |
27 | | - * languages. |
28 | | - * |
29 | | - * <p>It is usually not possible to determine at the point where an exception is thrown whether it |
30 | | - * will escape the scope of a span. However, it is trivial to know that an exception will escape, |
31 | | - * if one checks for an active exception just before ending the span, as done in the <a |
32 | | - * href="https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception">example |
33 | | - * for recording span exceptions</a>. |
34 | | - * |
35 | | - * <p>It follows that an exception may still escape the scope of the span even if the {@code |
36 | | - * exception.escaped} attribute was not set or set to false, since the event might have been |
37 | | - * recorded at a time where it was not clear whether the exception will escape. |
38 | | - * |
39 | | - * @deprecated deprecated in favor of stable {@link |
40 | | - * io.opentelemetry.semconv.ExceptionAttributes#EXCEPTION_ESCAPED} attribute. |
41 | | - */ |
42 | | - @Deprecated |
43 | | - public static final AttributeKey<Boolean> EXCEPTION_ESCAPED = booleanKey("exception.escaped"); |
44 | | - |
45 | 16 | /** |
46 | 17 | * The exception message. |
47 | 18 | * |
|
0 commit comments