def _with_tracer_wrapper(func):
    """Helper for providing tracer for wrapper functions."""

    def _with_tracer(tracer, to_wrap):
        def wrapper(wrapped, instance, args, kwargs):
            return func(tracer, to_wrap, wrapped, instance, args, kwargs)

        return wrapper

    return _with_tracer
Helper for providing tracer for wrapper functions.
packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/utils.py