diff --git a/instana/agent.py b/instana/agent.py index 676b8e59..1341baae 100644 --- a/instana/agent.py +++ b/instana/agent.py @@ -214,6 +214,11 @@ def report_traces(self, spans): Used to report entity data (metrics & snapshot) to the host agent. """ try: + # Concurrency double check: Don't report if we don't have + # any spans + if len(spans) == 0: + return 0 + response = None response = self.client.post(self.__traces_url(), data=self.to_json(spans), diff --git a/instana/instrumentation/redis.py b/instana/instrumentation/redis.py index f8eb4605..8c95ec55 100644 --- a/instana/instrumentation/redis.py +++ b/instana/instrumentation/redis.py @@ -8,7 +8,7 @@ try: import redis - if redis.VERSION < (3, 0, 0): + if ((redis.VERSION >= (2, 10, 6)) and (redis.VERSION < (3, 0, 0))): @wrapt.patch_function_wrapper('redis.client','StrictRedis.execute_command') def execute_command_with_instana(wrapped, instance, args, kwargs): @@ -76,6 +76,7 @@ def execute_with_instana(wrapped, instance, args, kwargs): logger.debug("Instrumenting redis") else: - logger.debug("redis >=3.0.0 not supported (yet)") + logger.debug("redis <= 2.10.5 >=3.0.0 not supported.") + logger.debug(" --> https://docs.instana.io/ecosystem/python/supported-versions/#tracing") except ImportError: pass