Skip to content

Commit 591159e

Browse files
committed
remove deprecated methods
1 parent 695fb5a commit 591159e

File tree

3 files changed

+2
-42
lines changed

3 files changed

+2
-42
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
/** An interface for getting attributes common to database clients. */
1111
public interface DbClientCommonAttributesGetter<REQUEST, RESPONSE> {
1212

13-
@Deprecated
14-
@Nullable
15-
default String getSystem(REQUEST request) {
16-
return null;
17-
}
18-
1913
String getDbSystem(REQUEST request);
2014

2115
@Deprecated
@@ -24,15 +18,6 @@ default String getUser(REQUEST request) {
2418
return null;
2519
}
2620

27-
/**
28-
* @deprecated Use {@link #getDbNamespace(Object)} instead.
29-
*/
30-
@Deprecated
31-
@Nullable
32-
default String getName(REQUEST request) {
33-
return null;
34-
}
35-
3621
@Nullable
3722
String getDbNamespace(REQUEST request);
3823

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
*
2828
* <p>It sets the same set of attributes as {@link DbClientAttributesExtractor} plus an additional
2929
* <code>db.sql.table</code> attribute. The raw SQL statements returned by the {@link
30-
* SqlClientAttributesGetter#getRawQueryText(Object)} method are sanitized before use, all statement
31-
* parameters are removed.
30+
* SqlClientAttributesGetter#getRawQueryTexts(Object)} method are sanitized before use, all
31+
* statement parameters are removed.
3232
*/
3333
public final class SqlClientAttributesExtractor<REQUEST, RESPONSE>
3434
extends DbClientCommonAttributesExtractor<

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.Collection;
99
import java.util.Collections;
1010
import java.util.Map;
11-
import javax.annotation.Nullable;
1211

1312
/**
1413
* An interface for getting SQL database client attributes.
@@ -24,30 +23,6 @@
2423
public interface SqlClientAttributesGetter<REQUEST, RESPONSE>
2524
extends DbClientCommonAttributesGetter<REQUEST, RESPONSE> {
2625

27-
/**
28-
* Get the raw SQL statement. The value returned by this method is later sanitized by the {@link
29-
* SqlClientAttributesExtractor} before being set as span attribute.
30-
*
31-
* @deprecated Use {@link #getRawQueryText(Object)} instead.
32-
*/
33-
@Deprecated
34-
@Nullable
35-
default String getRawStatement(REQUEST request) {
36-
return null;
37-
}
38-
39-
/**
40-
* Get the raw SQL query text. The value returned by this method is later sanitized by the {@link
41-
* SqlClientAttributesExtractor} before being set as span attribute.
42-
*
43-
* @deprecated Use {@link #getRawQueryTexts(Object)} instead.
44-
*/
45-
@Deprecated
46-
@Nullable
47-
default String getRawQueryText(REQUEST request) {
48-
return getRawStatement(request);
49-
}
50-
5126
/**
5227
* Get the raw SQL query texts. The values returned by this method is later sanitized by the
5328
* {@link SqlClientAttributesExtractor} before being set as span attribute.

0 commit comments

Comments
 (0)