def METHOD_NAME(func):
    """
    Capture Dagster Sensor context for Sentry Error handling
    """
    @functools.wraps(func)
    def wrapped_fn(*args, **kwargs):
        context = _get_context_from_args_kwargs(args, kwargs)
        with sentry_sdk.configure_scope() as scope:
            scope.set_transaction_name(context._sensor_name)
            scope.set_tag("sensor_name", context._sensor_name)
            scope.set_tag("run_id", context.cursor)
            return func(*args, **kwargs)
    return wrapped_fn