Skip to content

Commit 714b294

Browse files
committed
Revert DbClientCommonAttributesGetter to original state
- Removed getDbSystemName() and getResponseStatusCode() methods - Undeprecated getDbSystem() and getResponseStatus() methods - This deprecated interface now stands alone with its original API - New method names are only in DbClientAttributesGetter where they belong
1 parent 6c63ba5 commit 714b294

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@
1515
@Deprecated
1616
public interface DbClientCommonAttributesGetter<REQUEST, RESPONSE> {
1717

18-
/**
19-
* @deprecated Use {@link #getDbSystemName(REQUEST)} instead.
20-
*/
21-
@Deprecated
22-
default String getDbSystem(REQUEST request) {
23-
return getDbSystemName(request);
24-
}
25-
26-
String getDbSystemName(REQUEST request);
18+
String getDbSystem(REQUEST request);
2719

2820
@Deprecated
2921
@Nullable
@@ -40,17 +32,8 @@ default String getConnectionString(REQUEST request) {
4032
return null;
4133
}
4234

43-
/**
44-
* @deprecated Use {@link #getResponseStatusCode(RESPONSE, Throwable)} instead.
45-
*/
46-
@Deprecated
4735
@Nullable
4836
default String getResponseStatus(@Nullable RESPONSE response, @Nullable Throwable error) {
49-
return getResponseStatusCode(response, error);
50-
}
51-
52-
@Nullable
53-
default String getResponseStatusCode(@Nullable RESPONSE response, @Nullable Throwable error) {
5437
return null;
5538
}
5639
}

0 commit comments

Comments
 (0)