-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sql sanitizer: sanitize double quoted strings only in couchbase queri…
…es (#4615) * Sql sanitizer: sanitize double quotes strings only in couchbase queries * remove unused method * use AutoValue
- Loading branch information
Showing
5 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/db/SqlDialect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.api.db; | ||
|
||
/** Enumeration of sql dialects that are handled differently by {@link SqlStatementSanitizer}. */ | ||
public enum SqlDialect { | ||
DEFAULT, | ||
// couchbase uses double quotes for string literals | ||
COUCHBASE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters