def METHOD_NAME(self):
    # create the TracedCache instance for a Flask app
    Cache = get_traced_cache(self.tracer, service=self.SERVICE)
    app = Flask(__name__)
    config = {"CACHE_TYPE": "redis", "CACHE_REDIS_PORT": 2230, "CACHE_REDIS_HOST": "127.0.0.1"}
    cache = Cache(app, config=config)
    # use a wrong redis connection
    with pytest.raises(ConnectionError) as ex:
        cache.get(u"á_complex_operation")
    # ensure that the error is not caused by our tracer
    assert "127.0.0.1:2230. Connection refused." in ex.value.args[0]
    spans = self.pop_spans()
    # an error trace must be sent
    assert len(spans) == 1
    span = spans[0]
    assert span.service == self.SERVICE
    assert span.resource == "get"
    assert span.name == "flask_cache.cmd"
    assert span.span_type == "cache"
    assert span.get_tag(CACHE_BACKEND) == "redis"
    assert span.get_tag(net.TARGET_HOST) == "127.0.0.1"
    assert span.get_tag("component") == "flask_cache"
    assert span.get_metric("network.destination.port") == 2230
    assert span.error == 1