Skip to content

Conversation

xrmx
Copy link
Member

@xrmx xrmx commented Jul 1, 2024

What does this pull request do?

Handle the case where if the transaction is not sampled capture_span will return None instead of a span.
While at it fix handling of checking for KAFKA_HOST in tests.

Related issues

Closes #2073

… not sampled Handle the case where if the transaction is not sampled capture_span will return None instead of span. While at it fix handling of checking for KAFKA_HOST in tests. Fix elastic#2073
@xrmx xrmx force-pushed the fix-kafka-attributeerror branch from 1456d47 to 0b25489 Compare July 1, 2024 09:11
@xrmx xrmx marked this pull request as ready for review July 1, 2024 09:22
@xrmx xrmx changed the title WIP add test for cosumer stop itjeration not sampled instrumentation/kafka: fix handling consumer iteration if transaction not sampled Jul 1, 2024
@xrmx xrmx requested a review from basepi July 1, 2024 09:23
@xrmx xrmx merged commit c5b6e15 into elastic:main Jul 9, 2024
xrmx added a commit to xrmx/apm-agent-python that referenced this pull request Aug 19, 2024
… not sampled (elastic#2075) Handle the case where if the transaction is not sampled capture_span will return None instead of span. While at it fix handling of checking for KAFKA_HOST in tests. Fix elastic#2073
xrmx added a commit that referenced this pull request Aug 19, 2024
… not sampled (#2075) Handle the case where if the transaction is not sampled capture_span will return None instead of span. While at it fix handling of checking for KAFKA_HOST in tests. Fix #2073
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants