Class SqlDialect
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.SqlDialect
Describes SQL dialect options that affect how
SqlQueryAnalyzer processes queries.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SqlDialectDialect where double-quoted fragments are treated as identifiers (e.g. column/table names) and therefore left intact during sanitization.static final SqlDialectDialect where double-quoted fragments are treated as string literals and therefore sanitized (replaced with?). -
Method Summary
-
Field Details
-
DOUBLE_QUOTES_ARE_STRING_LITERALS
Dialect where double-quoted fragments are treated as string literals and therefore sanitized (replaced with?).This is a safer choice if you don't know how the database interprets double-quoted tokens. If the database actually uses double quotes for identifiers, the downside is that identifier names are replaced with
?, reducing diagnostic clarity. By contrast, choosingDOUBLE_QUOTES_ARE_IDENTIFIERSincorrectly would fail to sanitize sensitive string-literal values. -
DOUBLE_QUOTES_ARE_IDENTIFIERS
Dialect where double-quoted fragments are treated as identifiers (e.g. column/table names) and therefore left intact during sanitization. Use this only for databases where double quotes always denote identifiers.
-