You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR includes updates to the SQLSanitizer, DbClientSpanNameExtractor
and SqlStatementInfo to name spans according to procedure name for CALL
statements. The updates to the naming logic are in the SqlSanitizer and
table has been renamed to identifier as using the table variable for the
procedure name would not be idiomatic. SqlStatementInfo has been updated
so that the db.sql.table attribute is not included for procedures.
Copy file name to clipboardExpand all lines: instrumentation-api-semconv/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/db/DbClientSpanNameExtractor.java
+12-11
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,12 @@ public static <REQUEST> SpanNameExtractor<REQUEST> create(
25
25
26
26
/**
27
27
* Returns a {@link SpanNameExtractor} that constructs the span name according to DB semantic
Copy file name to clipboardExpand all lines: instrumentation-api-semconv/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/db/SqlClientAttributesExtractor.java
+7-2
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ public static <REQUEST, RESPONSE> SqlClientAttributesExtractorBuilder<REQUEST, R
Copy file name to clipboardExpand all lines: instrumentation-api-semconv/src/test/java/io/opentelemetry/instrumentation/api/db/SqlStatementSanitizerTest.java
Copy file name to clipboardExpand all lines: instrumentation/hibernate/hibernate-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/hibernate/OperationNameUtil.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ public static String getOperationNameForQuery(String query) {
Copy file name to clipboardExpand all lines: instrumentation/spring/spring-data/spring-data-common/testing/src/main/groovy/AbstractSpringJpaTest.groovy
+2-1
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ abstract class AbstractSpringJpaTest<ENTITY, REPOSITORY extends JpaRepository<EN
111
111
if (!isHibernate4) {
112
112
offset =1
113
113
span(1) {
114
-
name "test"
114
+
name "CALL test"
115
115
kind CLIENT
116
116
childOf span(0)
117
117
attributes {
@@ -120,6 +120,7 @@ abstract class AbstractSpringJpaTest<ENTITY, REPOSITORY extends JpaRepository<EN
0 commit comments