File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
instrumentation/vertx/vertx-redis-client-4.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/vertx/v4_0/redis
testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/db Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1010
1111import io .opentelemetry .api .common .AttributeKey ;
1212import io .opentelemetry .api .trace .SpanKind ;
13+ import io .opentelemetry .instrumentation .api .internal .SemconvStability ;
1314import io .opentelemetry .instrumentation .testing .junit .AgentInstrumentationExtension ;
1415import io .opentelemetry .instrumentation .testing .junit .InstrumentationExtension ;
1516import io .opentelemetry .instrumentation .testing .junit .db .SemconvStabilityUtil ;
@@ -202,7 +203,8 @@ void commandWithNoArguments() throws Exception {
202203 }
203204
204205 private static AttributeAssertion [] redisSpanAttributes (String operation , String statement ) {
205- if (SemconvStabilityUtil .isStable ()) {
206+ // not testing database/dup
207+ if (SemconvStability .emitStableDatabaseSemconv ()) {
206208 return new AttributeAssertion [] {
207209 equalTo (DbIncubatingAttributes .DB_SYSTEM , "redis" ),
208210 equalTo (AttributeKey .stringKey ("db.query.text" ), statement ),
Original file line number Diff line number Diff line change @@ -47,13 +47,10 @@ private static <T> void addKey(
4747
4848 @ SuppressWarnings ("unchecked" )
4949 public static <T > AttributeKey <T > getAttributeKey (AttributeKey <T > oldKey ) {
50- if (isStable ()) {
50+ // not testing database/dup
51+ if (SemconvStability .emitStableDatabaseSemconv ()) {
5152 return (AttributeKey <T >) oldToNewMap .get (oldKey );
5253 }
5354 return oldKey ;
5455 }
55-
56- public static boolean isStable () {
57- return SemconvStability .emitStableDatabaseSemconv ();
58- }
5956}
You can’t perform that action at this time.
0 commit comments