Closed
Description
Describe the bug: ...
We are seeing the following traceback coming out of the ElasticAPM agent via Sentry frequently on many of our environments.
KeyError: 'TRANSACTION_MAX_SPANS'
File "elasticapm/utils/threading.py", line 80, in run
rval = self._function(*self._args, **self._kwargs)
File "elasticapm/conf/__init__.py", line 701, in update_config
self.reset()
File "elasticapm/conf/__init__.py", line 650, in reset
if self._config.values[key] != self._first_config.values[key]:
To Reproduce
Unknown. However, Sentry shows a lot of POST requests going to the APM server before this happens. Our assumption is that we are hitting TRANSACTION_MAX_SPANS, but this is not being handled gracefully, and causing this exception instead.
Environment (please complete the following information)
- OS: Linux
- Python version: 3.8
- Framework and version: Django 3.1.7
- APM Server version: 7.6
- Agent version: 6.0.0