def METHOD_NAME(self, module, method, wrapped, instance, args, kwargs):
    if "method" in kwargs:
        method = kwargs["method"]
    else:
        method = args[0]
    host = instance.host
    if instance.port != default_ports.get(instance.scheme):
        host += ":" + str(instance.port)
    if "url" in kwargs:
        url = kwargs["url"]
    else:
        url = args[1]
    signature = method.upper() + " " + host
    if url.startswith("/"):
        url = "%s://%s%s" % (instance.scheme, host, url)
    transaction = execution_context.get_transaction()
    with capture_span(
        signature,
        span_type="external",
        span_subtype="http",
        extra={"http": {"url": url}},
        leaf=True,
    ) as span:
        # if urllib3 has been called in a leaf span, this span might be a DroppedSpan.
        leaf_span = span
        while isinstance(leaf_span, DroppedSpan):
            leaf_span = leaf_span.parent
        parent_id = leaf_span.id if leaf_span else transaction.id
        trace_parent = transaction.trace_parent.copy_from(
            span_id=parent_id, trace_options=TracingOptions(recorded=True)
        )
        args, kwargs = update_headers(args, kwargs, instance, transaction, trace_parent)
        if leaf_span:
            leaf_span.dist_tracing_propagated = True
        response = wrapped(*args, **kwargs)
        if response:
            if span.context:
                span.context["http"]["status_code"] = response.status
            span.set_success() if response.status < 400 else span.set_failure()
        return response