Skip to content

Be able to disable metrics in producer #2577

@bwang-abnormalsecurity

Description

@bwang-abnormalsecurity

In my profiling of a prod system, I'm seeing fairly large amount of time is used to do metrics related things (all the parts that is left of the hovered method in the screenshot) in producer's sender.

Image

I'm wondering if there is anyway to disable that? Seems like the metrics is always created here:

self._metrics = Metrics(metric_config, reporters)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions