Skip to content

Commit dd6c01e

Browse files
committed
feat: Update kafka python instrumentation to support kafka-python>=3
1 parent a8359fd commit dd6c01e

16 files changed

Lines changed: 556 additions & 58 deletions

File tree

.changelog/4786.added

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`opentelemetry-instrumentation-kafka-python`: Update kafka python instrumentation to support kafka-python>=3

.github/workflows/core_contrib_test.yml

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3657,8 +3657,8 @@ jobs:
36573657
- name: Run tests
36583658
run: tox -e py310-test-instrumentation-aiokafka -- -ra
36593659

3660-
py310-test-instrumentation-kafka-python:
3661-
name: instrumentation-kafka-python
3660+
py310-test-instrumentation-kafka-python-oldest:
3661+
name: instrumentation-kafka-python-oldest
36623662
runs-on: ubuntu-latest
36633663
timeout-minutes: 30
36643664
steps:
@@ -3685,10 +3685,10 @@ jobs:
36853685
run: pip install tox-uv
36863686

36873687
- name: Run tests
3688-
run: tox -e py310-test-instrumentation-kafka-python -- -ra
3688+
run: tox -e py310-test-instrumentation-kafka-python-oldest -- -ra
36893689

3690-
py310-test-instrumentation-kafka-pythonng:
3691-
name: instrumentation-kafka-pythonng
3690+
py310-test-instrumentation-kafka-python-latest:
3691+
name: instrumentation-kafka-python-latest
36923692
runs-on: ubuntu-latest
36933693
timeout-minutes: 30
36943694
steps:
@@ -3715,7 +3715,67 @@ jobs:
37153715
run: pip install tox-uv
37163716

37173717
- name: Run tests
3718-
run: tox -e py310-test-instrumentation-kafka-pythonng -- -ra
3718+
run: tox -e py310-test-instrumentation-kafka-python-latest -- -ra
3719+
3720+
py310-test-instrumentation-kafka-pythonng-oldest:
3721+
name: instrumentation-kafka-pythonng-oldest
3722+
runs-on: ubuntu-latest
3723+
timeout-minutes: 30
3724+
steps:
3725+
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
3726+
uses: actions/checkout@v4
3727+
with:
3728+
repository: open-telemetry/opentelemetry-python-contrib
3729+
ref: ${{ env.CONTRIB_REPO_SHA }}
3730+
3731+
- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
3732+
uses: actions/checkout@v4
3733+
with:
3734+
repository: open-telemetry/opentelemetry-python
3735+
ref: ${{ env.CORE_REPO_SHA }}
3736+
path: opentelemetry-python
3737+
3738+
- name: Set up Python 3.10
3739+
uses: actions/setup-python@v5
3740+
with:
3741+
python-version: "3.10"
3742+
architecture: "x64"
3743+
3744+
- name: Install tox
3745+
run: pip install tox-uv
3746+
3747+
- name: Run tests
3748+
run: tox -e py310-test-instrumentation-kafka-pythonng-oldest -- -ra
3749+
3750+
py310-test-instrumentation-kafka-pythonng-latest:
3751+
name: instrumentation-kafka-pythonng-latest
3752+
runs-on: ubuntu-latest
3753+
timeout-minutes: 30
3754+
steps:
3755+
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
3756+
uses: actions/checkout@v4
3757+
with:
3758+
repository: open-telemetry/opentelemetry-python-contrib
3759+
ref: ${{ env.CONTRIB_REPO_SHA }}
3760+
3761+
- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
3762+
uses: actions/checkout@v4
3763+
with:
3764+
repository: open-telemetry/opentelemetry-python
3765+
ref: ${{ env.CORE_REPO_SHA }}
3766+
path: opentelemetry-python
3767+
3768+
- name: Set up Python 3.10
3769+
uses: actions/setup-python@v5
3770+
with:
3771+
python-version: "3.10"
3772+
architecture: "x64"
3773+
3774+
- name: Install tox
3775+
run: pip install tox-uv
3776+
3777+
- name: Run tests
3778+
run: tox -e py310-test-instrumentation-kafka-pythonng-latest -- -ra
37193779

37203780
py310-test-instrumentation-confluent-kafka:
37213781
name: instrumentation-confluent-kafka

0 commit comments

Comments
 (0)