Skip to content

Commit 9491a75

Browse files
author
Mateusz Rzeszutek
committed
Javadocs
1 parent 360852a commit 9491a75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

custom/src/main/java/com/splunk/opentelemetry/JdbcSpanRenamingProcessor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
import java.util.HashSet;
2525
import java.util.Set;
2626

27+
/**
28+
* This span processor is responsible for renaming spans produced by the JDBC auto-instrumentation,
29+
* which have the full SQL query in their names. To lower the cardinality and make those spans
30+
* easier to analyze this processor renames spans so that they only use the SQL operation type (e.g.
31+
* {@code SELECT}, {@code INSERT}, ...) as their names. Full SQL query is still available in the
32+
* {@code db.statement} attribute.
33+
*/
2734
public class JdbcSpanRenamingProcessor implements SpanProcessor {
2835
private static final Set<String> SQL_SYSTEMS;
2936

0 commit comments

Comments
 (0)