Commit 69592b0
committed
Use db.system.name as span name fallback per stable semconv
Per the stable database semantic conventions, when neither operation
nor target are available, the span name should be db.system.name.
Updated the test to expect 'other_sql' (the db.system.name value) for
stable semconv, while keeping 'DB Query' for old semconv to maintain
backward compatibility.1 parent 11e7b49 commit 69592b0
File tree
3 files changed
+10
-11
lines changed- instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db
- instrumentation/jdbc/testing/src/main/java/io/opentelemetry/instrumentation/jdbc/testing
3 files changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 132 | + | |
| 133 | + | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | | - | |
| 1223 | + | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
| |||
0 commit comments