Skip to content

dictionary changed size during iteration #717

@starenka

Description

@starenka

I get this error pretty often in TransactionsMetricSet:

RuntimeError: dictionary changed size during iteration
  File "elasticapm/utils/threading.py", line 79, in run
    rval = self._function(*self._args, **self._kwargs)
  File "elasticapm/metrics/base_metrics.py", line 97, in collect
    for data in metricset.collect():
  File "elasticapm/metrics/base_metrics.py", line 215, in collect
    for (name, labels), t in compat.iteritems(self._timers):

Environment (please complete the following information)

  • OS: Debian stable
  • Python version: 2.7.13
  • Framework and version [e.g. Django 2.1]: 1.11.20
  • APM Server version: 7.6.0
  • Agent version: 5.3.3

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