Skip to content

Commit 973784e

Browse files
committed
error.type and db.response.status_code all dbs
1 parent 8a48741 commit 973784e

File tree

1 file changed

+4
-1
lines changed
  • instrumentation/spymemcached-2.12/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spymemcached

1 file changed

+4
-1
lines changed

instrumentation/spymemcached-2.12/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spymemcached/SpymemcachedTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ void getTimeout() throws InterruptedException {
262262
equalTo(
263263
maybeStable(DB_SYSTEM),
264264
DbIncubatingAttributes.DbSystemIncubatingValues.MEMCACHED),
265-
equalTo(maybeStable(DB_OPERATION), "get"))));
265+
equalTo(maybeStable(DB_OPERATION), "get"),
266+
equalTo(
267+
ERROR_TYPE,
268+
"net.spy.memcached.internal.CheckedOperationTimeoutException"))));
266269
}
267270

268271
@Test

0 commit comments

Comments
 (0)