Skip to content

Commit c9793e8

Browse files
committed
incubating too
1 parent 4ac4a91 commit c9793e8

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

buildscripts/templates/registry/incubating_java/weaver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
params:
22
excluded_namespaces: ["ios", "aspnetcore", "signalr"]
3-
excluded_attributes: ["messaging.client_id"]
3+
excluded_attributes: ["messaging.client_id", "exception.escaped"]
44
comment_formats:
55
javadoc:
66
format: html

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/ExceptionIncubatingAttributes.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package io.opentelemetry.semconv.incubating;
77

8-
import static io.opentelemetry.api.common.AttributeKey.booleanKey;
98
import static io.opentelemetry.api.common.AttributeKey.stringKey;
109

1110
import io.opentelemetry.api.common.AttributeKey;
@@ -14,34 +13,6 @@
1413
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1514
@SuppressWarnings("unused")
1615
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-
4516
/**
4617
* The exception message.
4718
*

0 commit comments

Comments
 (0)