def METHOD_NAME(self, cmd_name):
    """Return a span timing the given command."""
    pin = ddtrace.Pin.get_from(self)
    if not pin or not pin.enabled():
        return self._no_span()
    span = pin.tracer.trace(
        schematize_cache_operation("memcached.cmd", cache_provider="memcached"),
        service=pin.service,
        resource=cmd_name,
        span_type=SpanTypes.CACHE,
    )
    span.set_tag_str(COMPONENT, config.pylibmc.integration_name)
    span.set_tag_str(db.SYSTEM, memcached.DBMS_NAME)
    # set span.kind to the type of operation being performed
    span.set_tag_str(SPAN_KIND, SpanKind.CLIENT)
    span.set_tag(SPAN_MEASURED_KEY)
    try:
        self._tag_span(span)
    except Exception:
        log.debug("error tagging span", exc_info=True)
    return span