Skip to content

aiokafka instrumentation #3368

@elghali

Description

@elghali

Describe your environment

OS: windows + docker
Python version: (e.g., Python 3.11)
Package version: opentelemetry-instrumentation-aiokafka~=0.52b0
aiokafka~=0.12.0

What happened?

Exception:
AIOKafkaProducer.send() got multiple values for argument 'headers'

Steps to Reproduce

Using opentelemetry-instrumentation-aiokafka~=0.52b0,
from opentelemetry.instrumentation.aiokafka import AIOKafkaInstrumentor

Instrument kafka

AIOKafkaInstrumentor().instrument()

and
await producer.send_and_wait(RESULTS_TOPIC, key=correlation_id, value=result_event.encode('utf-8'),)

Expected Result

Send event

Actual Result

Exception:
AIOKafkaProducer.send() got multiple values for argument 'headers'

Additional context

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions