Skip to content

Conversation

@CagriYonca
Copy link
Contributor

This PR solves the confluent-kafka bug below:

Traceback (most recent call last):
  File "/opt/instana/instrumentation/python/instana/instrumentation/kafka/confluent_kafka_python.py", line 254, in trace_kafka_poll
    create_span("poll", res.topic(), res.headers())
                        ^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'topic'

Note: This issue doesn't happen in the Kafka-Python package since the poll function there works differently.

@CagriYonca CagriYonca self-assigned this Nov 25, 2025
@CagriYonca CagriYonca requested a review from a team as a code owner November 25, 2025 12:30
@CagriYonca CagriYonca added the fix label Nov 25, 2025
Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@CagriYonca CagriYonca merged commit 3a8603f into main Nov 26, 2025
20 checks passed
@CagriYonca CagriYonca deleted the fix/confluent-kafka branch November 26, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants