Skip to content

fix(kafka-python): keep producer spans around send - #4875

Draft
ahmadalguydi wants to merge 1 commit into
open-telemetry:mainfrom
ahmadalguydi:codex/kafka-python-span-failures
Draft

fix(kafka-python): keep producer spans around send#4875
ahmadalguydi wants to merge 1 commit into
open-telemetry:mainfrom
ahmadalguydi:codex/kafka-python-span-failures

Conversation

@ahmadalguydi

@ahmadalguydi ahmadalguydi commented Jul 28, 2026

Copy link
Copy Markdown

Summary\n- execute the synchronous producer send() call inside the producer span\n- ensure serialization and connection failures are recorded by the span\n- add a regression test that verifies operation/span lifetime ordering\n\nFixes #4871\n\nValidation: python -m py_compile instrumentation/opentelemetry-instrumentation-kafka-python/src/opentelemetry/instrumentation/kafka/utils.py instrumentation/opentelemetry-instrumentation-kafka-python/tests/test_utils.py, git diff --check\n\nThe full targeted pytest could not run locally because the repository's OpenTelemetry package dependencies are not installed in this environment.\n\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant