scoutapp / scout_apm_python

ScoutAPM Python Agent. Supports Django, Flask, and many other frameworks.
https://scoutapm.com
MIT License
69 stars 21 forks source link

Better handle newly added ElasticSearch functions #713

Closed tim-schilling closed 2 years ago

tim-schilling commented 2 years ago

When using the agent with an older version of ElasticSearch, the following warning is logged:

Failed to instrument elasticsearch.Elasticsearch.search_mvt: AttributeError("type object 'Elasticsearch' has no attribute 'search_mvt'")

When a client method doesn't exist, the agent should either ignore it or more quietly log that information.