ddtrace/contrib/flask_cache/tracers.py
def __trace(self, cmd):
            """
            Start a tracing with default attributes and tags
            """
            # create a new span
            s = self._datadog_tracer.trace(
                cmd,
                span_type=TYPE,
                service=self._datadog_service
            )
            # set span tags
            s.set_tag(CACHE_BACKEND, self.config.get("CACHE_TYPE"))
            s.set_tags(self._datadog_meta)
            # add connection meta if there is one
            if getattr(self.cache, "_client", None):
                try:
                    s.set_tags(_extract_conn_tags(self.cache._client))
                except Exception:
                    log.debug("error parsing connection tags", exc_info=True)

            return s

            Start a tracing with default attributes and tags
            
Start a tracing with default attributes and tags
Start a tracing with default attributes and tags
def __trace(self, cmd):
            s = self._datadog_tracer.trace(
                cmd,
                span_type=TYPE,
                service=self._datadog_service
            )
            s.set_tag(CACHE_BACKEND, self.config.get("CACHE_TYPE"))
            s.set_tags(self._datadog_meta)
            if getattr(self.cache, "_client", None):
                try:
                    s.set_tags(_extract_conn_tags(self.cache._client))
                except Exception:
                    log.debug("error parsing connection tags", exc_info=True)
            return s
def __trace ( self , cmd ) : s = self . _datadog_tracer . trace ( cmd , span_type = TYPE , service = self . _datadog_service ) s . set_tag ( CACHE_BACKEND , self . config . get ( "CACHE_TYPE" ) ) s . set_tags ( self . _datadog_meta ) if getattr ( self . cache , "_client" , None ) : try : s . set_tags ( _extract_conn_tags ( self . cache . _client ) ) except Exception : log . debug ( "error parsing connection tags" , exc_info = True ) return s
Start a tracing with default attributes and tags
Start a tracing with default attributes and tags
"""
            Start a tracing with default attributes and tags
            """ # create a new span # set span tags # add connection meta if there is one
self
cmd