After I upgrade the agent from 4.0.3 to 4.1.0, I can't start the app which use APM python agent.
It is stuck after the log print:
base_metrics.py[line:63] DEBUG Starting metrics collect timer
Thanks for reporting this! It looks like there might be an issue with logging the warning that psutil isn't installed (assuming you haven't installed it). Can you try and install psutil and see if the problem goes away? Also, if you configured your logging setup, that configuration might also be helpful in resolving this.
Cheers
Beni
I'm still investigating this, but so far haven't managed to reproduce it. In the meantime, you could try one of the following options to disable metrics until we can figure out a fix:
app.config["ELASTIC_APM"] = {
# ...
"METRICS_INTERVAL": "0s",
# or
"METRICS_SETS": [],
}
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.