Skip to content

confluent-kafka: simplify patching of Producer and Consumer #4270

@xrmx

Description

@xrmx

The current way of patching swaps the kafka classes with AutoInstrumented* versions, and then wrap their methods.
That has the drawback of not being able to patch (in tests at least) if these classes have already been imported. I guess we can patch the kafka classes directly as the other instrumentations usually do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions