Skip to content

Commit 5eb706d

Browse files
update to
1 parent 4dbdc28 commit 5eb706d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

instrumentation-annotations-incubator/src/main/java/io/opentelemetry/instrumentation/annotations/incubator/Counted.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* <ul>
2020
* <li><b>code.namespace:</b> The fully qualified name of the class whose method is invoked.
2121
* <li><b>code.function:</b> The name of the annotated method.
22-
* <li><b>exception.type:</b> This is only present if an Exception is thrown, and contains the
22+
* <li><b>error.type:</b> This is only present if an Exception is thrown, and contains the
2323
* {@link Class#getName name} of the Exception class.
2424
* </ul>
2525
*

instrumentation-annotations-incubator/src/main/java/io/opentelemetry/instrumentation/annotations/incubator/Timed.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* <ul>
2121
* <li><b>code.namespace:</b> The fully qualified name of the class whose method is invoked.
2222
* <li><b>code.function:</b> The name of the annotated method.
23-
* <li><b>exception.type:</b> This is only present if an Exception is thrown, and contains the
23+
* <li><b>error.type:</b> This is only present if an Exception is thrown, and contains the
2424
* {@link Class#getName name} of the Exception class.
2525
* </ul>
2626
*

instrumentation/opentelemetry-instrumentation-annotations/opentelemetry-instrumentation-annotations-incubator/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/incubator/MetricsAnnotationHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Attributes getAttributes(Object returnValue, Object[] arguments, Throwable throw
9090
bindReturn.accept(attributesBuilder, returnValue);
9191
}
9292
if (throwable != null) {
93-
attributesBuilder.put("exception.type", throwable.getClass().getName());
93+
attributesBuilder.put("error.type", throwable.getClass().getName());
9494
}
9595
return attributesBuilder.build();
9696
}

instrumentation/opentelemetry-instrumentation-annotations/opentelemetry-instrumentation-annotations-incubator/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/incubator/counted/CountedInstrumentationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void testExampleWithException() {
110110
.getName()
111111
.equals(
112112
p.getAttributes()
113-
.get(AttributeKey.stringKey("exception.type"))))));
113+
.get(AttributeKey.stringKey("error.type"))))));
114114
}
115115

116116
@Test

instrumentation/opentelemetry-instrumentation-annotations/opentelemetry-instrumentation-annotations-incubator/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/instrumentationannotations/incubator/timed/TimedInstrumentationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void testExampleWithException() {
106106
.getName()
107107
.equals(
108108
p.getAttributes()
109-
.get(AttributeKey.stringKey("exception.type"))))));
109+
.get(AttributeKey.stringKey("error.type"))))));
110110
}
111111

112112
@Test

0 commit comments

Comments
 (0)