@@ -259,7 +259,7 @@ def test_confluent_kafka_poll_root_exit(self) -> None:
259259 agent .options .allow_exit_as_root = True
260260
261261 # Produce some events
262- self .producer .produce (testenv ["kafka_topic" ], b"raw_bytes1" )
262+ self .producer .produce (testenv ["kafka_topic" ] + "-poll" , b"raw_bytes1" )
263263 self .producer .flush ()
264264
265265 # Consume the events
@@ -268,7 +268,7 @@ def test_confluent_kafka_poll_root_exit(self) -> None:
268268 consumer_config ["auto.offset.reset" ] = "earliest"
269269
270270 consumer = Consumer (consumer_config )
271- consumer .subscribe ([testenv ["kafka_topic" ]])
271+ consumer .subscribe ([testenv ["kafka_topic" ] + "-poll" ])
272272
273273 msg = consumer .poll (timeout = 30 ) # noqa: F841
274274
@@ -281,14 +281,14 @@ def test_confluent_kafka_poll_root_exit(self) -> None:
281281 spans ,
282282 lambda span : span .n == "kafka"
283283 and span .data ["kafka" ]["access" ] == "produce"
284- and span .data ["kafka" ]["service" ] == "span-topic" ,
284+ and span .data ["kafka" ]["service" ] == "span-topic-poll " ,
285285 )
286286
287287 poll_span = get_first_span_by_filter (
288288 spans ,
289289 lambda span : span .n == "kafka"
290290 and span .data ["kafka" ]["access" ] == "poll"
291- and span .data ["kafka" ]["service" ] == "span-topic" ,
291+ and span .data ["kafka" ]["service" ] == "span-topic-poll " ,
292292 )
293293
294294 # Same traceId
0 commit comments