Skip to content

Commit ade4502

Browse files
committed
error.type and db.response.status_code all dbs
1 parent a96be5a commit ade4502

File tree

1 file changed

+0
-20
lines changed
  • instrumentation/couchbase/couchbase-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/couchbase/v2_0

1 file changed

+0
-20
lines changed

instrumentation/couchbase/couchbase-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/couchbase/v2_0/CouchbaseAttributesGetter.java

-20
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package io.opentelemetry.javaagent.instrumentation.couchbase.v2_0;
77

8-
import com.couchbase.client.core.CouchbaseException;
98
import io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesGetter;
109
import io.opentelemetry.semconv.incubating.DbIncubatingAttributes;
1110
import javax.annotation.Nullable;
@@ -50,23 +49,4 @@ public String getDbQueryText(CouchbaseRequestInfo couchbaseRequest) {
5049
public String getDbOperationName(CouchbaseRequestInfo couchbaseRequest) {
5150
return couchbaseRequest.operation();
5251
}
53-
54-
@Nullable
55-
@Override
56-
public String getResponseStatusFromException(Throwable throwable) {
57-
if (throwable instanceof CouchbaseException) {
58-
// todo
59-
// ResponseStatusDetails details = ((CouchbaseException) throwable).details();
60-
// in newer versions of the SDK, this is available as a method on the exception
61-
// check if it's available and contains the status
62-
// @InterfaceAudience.Public
63-
// @InterfaceStability.Experimental
64-
// public ResponseStatusDetails details() {
65-
// return this.responseStatusDetails;
66-
// }
67-
// throwable.
68-
// return throwable.getClass().getSimpleName();
69-
}
70-
return null;
71-
}
7252
}

0 commit comments

Comments
 (0)