@@ -166,7 +166,9 @@ public SampleTestRunnerConsumer yourCode() {
166
166
.hasTag ("messaging.rabbitmq.destination.routing_key" , "metrics.queue" )
167
167
.hasTag ("messaging.destination.name" , "amq.default" )
168
168
.hasTag ("messaging.source.name" , "metrics.queue" )
169
- .hasTag ("messaging.message.payload_size_bytes" , String .valueOf (PAYLOAD .length ));
169
+ .hasTag ("messaging.message.payload_size_bytes" , String .valueOf (PAYLOAD .length ))
170
+ .hasTag ("net.protocol.name" , "amqp" )
171
+ .hasTag ("net.protocol.version" , "0.9.1" );
170
172
waitAtMost (
171
173
() ->
172
174
getMeterRegistry ().find ("rabbitmq.publish" ).timer () != null
@@ -239,7 +241,9 @@ public SampleTestRunnerConsumer yourCode() {
239
241
.hasTag ("messaging.rabbitmq.destination.routing_key" , "metrics.queue" )
240
242
.hasTag ("messaging.destination.name" , "amq.default" )
241
243
.hasTag ("messaging.source.name" , "metrics.queue" )
242
- .hasTag ("messaging.message.payload_size_bytes" , String .valueOf (PAYLOAD .length ));
244
+ .hasTag ("messaging.message.payload_size_bytes" , String .valueOf (PAYLOAD .length ))
245
+ .hasTag ("net.protocol.name" , "amqp" )
246
+ .hasTag ("net.protocol.version" , "0.9.1" );
243
247
List <FinishedSpan > pollingSpans =
244
248
spans .stream ()
245
249
.filter (f -> f .size () == 1 )
@@ -323,7 +327,9 @@ public SampleTestRunnerConsumer yourCode() {
323
327
.hasTag ("messaging.rabbitmq.destination.routing_key" , "metrics.queue" )
324
328
.hasTag ("messaging.destination.name" , "amq.default" )
325
329
.hasTag ("messaging.source.name" , "metrics.queue" )
326
- .hasTag ("messaging.message.payload_size_bytes" , String .valueOf (PAYLOAD .length ));
330
+ .hasTag ("messaging.message.payload_size_bytes" , String .valueOf (PAYLOAD .length ))
331
+ .hasTag ("net.protocol.name" , "amqp" )
332
+ .hasTag ("net.protocol.version" , "0.9.1" );
327
333
List <FinishedSpan > pollingSpans =
328
334
spans .stream ()
329
335
.filter (f -> f .size () == 1 )
0 commit comments