Class SqlStatementInfo
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.SqlStatementInfo
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlStatementInfoDeprecated.Creates a SqlStatementInfo for old semconv (no querySummary).static SqlStatementInfocreateWithSummary(String queryText, String storedProcedureName, String querySummary) Deprecated.Creates a SqlStatementInfo for stable semconv (uses querySummary).abstract StringDeprecated.Returns the table/collection name, or null for CALL operations.abstract StringDeprecated.abstract StringDeprecated.Returns a low cardinality summary of the database query suitable for use as a span name or metric attribute.abstract StringDeprecated.abstract StringDeprecated.Returns the stored procedure name for CALL operations, or null for other operations.
-
Constructor Details
-
SqlStatementInfo
public SqlStatementInfo()Deprecated.
-
-
Method Details
-
createWithSummary
public static SqlStatementInfo createWithSummary(@Nullable String queryText, @Nullable String storedProcedureName, @Nullable String querySummary) Deprecated.Creates a SqlStatementInfo for stable semconv (uses querySummary). -
create
public static SqlStatementInfo create(@Nullable String queryText, @Nullable String operationName, @Nullable String target) Deprecated.Creates a SqlStatementInfo for old semconv (no querySummary). Package-private for backward compatibility with old jflex-generated sanitizer. -
getQueryText
Deprecated. -
getOperationName
Deprecated. -
getCollectionName
Deprecated.Returns the table/collection name, or null for CALL operations.- See Also:
-
getStoredProcedureName
Deprecated.Returns the stored procedure name for CALL operations, or null for other operations. -
getQuerySummary
Deprecated.Returns a low cardinality summary of the database query suitable for use as a span name or metric attribute.The summary contains operations (e.g., SELECT, INSERT) and their targets (e.g., table names) in the order they appear in the query. For example:
SELECT wuser_tableINSERT shipping_details SELECT ordersSELECT songs artists(multiple tables)
- See Also:
-
SqlQueryinstead. This class will be removed in a future release.