Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/clients/kafka/test_confluent_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_confluent_kafka_poll_root_exit(self) -> None:
agent.options.allow_exit_as_root = True

# Produce some events
self.producer.produce(testenv["kafka_topic"], b"raw_bytes1")
self.producer.produce(testenv["kafka_topic"] + "-poll", b"raw_bytes1")
self.producer.flush()

# Consume the events
Expand All @@ -268,7 +268,7 @@ def test_confluent_kafka_poll_root_exit(self) -> None:
consumer_config["auto.offset.reset"] = "earliest"

consumer = Consumer(consumer_config)
consumer.subscribe([testenv["kafka_topic"]])
consumer.subscribe([testenv["kafka_topic"] + "-poll"])

msg = consumer.poll(timeout=30) # noqa: F841

Expand All @@ -281,14 +281,14 @@ def test_confluent_kafka_poll_root_exit(self) -> None:
spans,
lambda span: span.n == "kafka"
and span.data["kafka"]["access"] == "produce"
and span.data["kafka"]["service"] == "span-topic",
and span.data["kafka"]["service"] == "span-topic-poll",
)

poll_span = get_first_span_by_filter(
spans,
lambda span: span.n == "kafka"
and span.data["kafka"]["access"] == "poll"
and span.data["kafka"]["service"] == "span-topic",
and span.data["kafka"]["service"] == "span-topic-poll",
)

# Same traceId
Expand Down
Loading